title: how to identify whether the textbox value is change or not?
body: <p>I have  mentioned my HTML.</p>
  
  <pre><code>&lt;div ng-controller="myCtrl"&gt;
       &lt;input type=text ng-model="name"&gt;
  &lt;/div&gt;
  </code></pre>
  
  <p>in my JS file </p>
  
  <pre><code>function myCtrl($scope){
       $scope.name=//this field comes from DB say 'ABC'
  }
  </code></pre>
  
  <p>My question :</p>
  
  <p>When my html is get loaded, it will disply "ABC" in textbox. Which is fine. 
  Now if user change that name to "XYZ", So $scope.name value is "XYZ". 
  So I need to identify that input value is changed. Previous value is "ABC" and now the value is "XYZ" how we can figured it out that value is changed?</p>