angularjs - Value not saved after edit ng repeat angular -
i have little trouble angular. have td element. initially, populated value 'item.comparedproducts.value'. when click on it, let me edit value. want remain saved after refresh it. if delete ng-repeat, it's successful. or if delete code after
ng-init.. =false; (item <- this)
there no values initially, brought comparedproducts, if edit label , refresh, value saved. have ideas how resolve simpler? or helpful information share me it? lots of
<tr class="col-new3"> <td>value</td> <td ng-repeat="item in list" ng-init="editcorrectvalue = false; item.correctedmonthlyvalue=item.comparedproducts.value" data-ng-click="editcorrectvalue = true; focusinput($event)" class="add-comma is-editable"> <input ng-blur="editcorrectvalue = false" ng-show="editcorrectvalue" data-ng-model="item.correctedmonthlyvalue" type="number"> <span ng-show="!editcorrectvalue">{{'{{ item.correctedmonthlyvalue }}'}}</span> </td> </tr>
Comments
Post a Comment