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

Popular posts from this blog

node.js - Node js - Trying to send POST request, but it is not loading javascript content -

javascript - Replicate keyboard event with html button -

javascript - Web audio api 5.1 surround example not working in firefox -