title: How to get the current text field value in controller using ng-change?
body: <p>here i want to get text field value in controller function evrytime i changed the text field</p>
  
  <pre><code>&lt;input type="text" name="quantity" ng-model="viewItemData1.quantity" ng-change="changePrice($event.target.value);"&gt;
  
   $scope.changePrice = function(val)
    {
       console.log(val);
       alert(val); 
       alert(JSON.stringfy(console.log(val))); 
  
  
    }  
  </code></pre>