title: predefined input and passing to ng-model in Angular
body: <p>Problem Question -</p>
  
  <p>I have a input box which displays the value, but now I want to update the value on click. </p>
  
  <pre><code>&lt;tr ng-repeat="value in money"&gt;
       &lt;td&gt;&lt;input type="text" ng-model="value.cent"&gt;
            &lt;button ng-controller="updateCentController"
              ng-click="updateCent(product.id,value.cent)"&gt;Update&lt;/button&gt;
       &lt;/td&gt;
  &lt;/tr&gt;
  </code></pre>
  
  <p>But how would I pass updated ng-model as a parameter to the ng-click? Am I doing something wrong?</p>
  
  <p>Update - </p>
  
  <p>Problem Has been fixed. It was in my controller</p>