title: function parameter is undefined in angularjs
body: <p>Why function <strong>CarName</strong> parameter passing as <strong>undefined</strong>, Why actual value not retrieving?</p>
  
  <pre><code>var app = angular.module('myApp', []);
  app.controller('myCtrl', function ($scope) {
      $scope.carname = "Honda";
  
      $scope.SaveData = function (carname) {
  
          console.log('Car Name='+carname);
  
      };
  })
  </code></pre>