title: angularjs form, input value changed programmatic(by code) not submitted to controller
body: <p>my problem is that after change input value by code or any plugin new value not submitted to controller and old value of property is accessible.
  but if change input value by typing new value is available! only by typing!
  template : </p>
  
  <pre><code> &lt;input class="form-control" id="ng-taskLineBackColor" 
         type="text" ng-model="data.preference.lineBackColor"/&gt;
  
   &lt;input type="submit" ng-click="update()"  class="btn btn-primary" value="save"/&gt;
  </code></pre>
  
  <p>controller :</p>
  
  <pre><code>.controller('taskCtrl', ['$scope', function ($scope) {
  
          $scope.getRef = function () {
              return //any code
          };
          $scope.save = function () {
               var newValue = $scope.data.preference.lineBackColor;
               //!!!--&gt;newValue Contain old Value
  
          };
      }])
  </code></pre>