title: Angularjs ng-value sum fields
body: <p>Hi i have inputs like this</p>
  
  <pre><code>&lt;input type="text" ng-model="tbl.Public"&gt;
  &lt;input type="text" ng-model="tbl.Private"&gt;
  &lt;input type="text" ng-value="tbl.Public--tbl.Private" ng-model="tbl.Total"&gt;
  </code></pre>
  
  <p>the above form will working fine it will sum the Public and Private value  and put it in tbl.Total field. My problem is in edit form where value of <strong>tbl.Total, tbl.Public, tbl.Private</strong> are assign from database.</p>
  
  <p>js</p>
  
  <pre><code>$scope.tbl.Public=10;
  $scope.tbl.Private=25;
  $scope.tbl.Total=35;
  </code></pre>
  
  <p>now after assigning a value from js when i change value of tbl.Public or tbl.Private in form it is not affecting a tbl.Total it should sum the two value and put it in tbl.Total field. 
  Thank you for your any help and suggestion.</p>