title: How to edit a row using angularjs based on text boxes?
body: <p>Here's a part of my form:</p>
  
  <pre><code>&lt;tr ng-repeat="f in fields"  track by $index" class="clickable" &gt;
  
         &lt;td&gt;&lt;input type="checkbox" ng-model="selectedEntities[$index].id" ng-true-value="{{f.id}}"/&gt;&lt;/td&gt; 
        &lt;td&gt;{{f.id}}&lt;/td&gt;
        &lt;td&gt;{{f.fieldName}}&lt;/td&gt;
        &lt;td&gt;{{f.fieldType.typeName}}&lt;/td&gt;
         &lt;td&gt;{{f.relation.entityName}}&lt;/td&gt;
        &lt;td&gt;{{f.inputType}}&lt;/td&gt;
        &lt;td&gt;{{f.size}}&lt;/td&gt;
        &lt;td&gt;{{f.primary}}&lt;/td&gt;
        &lt;td&gt;{{f.index}}&lt;/td&gt;
  
        &lt;td&gt;&lt;button ng-click="deleteField($index)"&gt;delete&lt;/button&gt;&lt;/td&gt; 
         &lt;td&gt;&lt;button ng-click="UpdateField($index)"&gt;Update&lt;/button&gt;&lt;/td&gt; 
  
  &lt;/tr&gt;
  </code></pre>
  
  <p>What should I do in the controller? </p>