I will figure out how to save the values entered in the input text box inside ng-repeat with the click of a button. I saw such examples of getting values from a text field , which allows the user to save each text field individually. The following is sample code:
$scope.items=[1,2,3,4] <div ng-repeat="item in items"> <input type="text" ng-model=item.id> </div> <button type="button" ng-click="saveAllValues()">Save</button>
javascript angularjs angularjs-ng-repeat ng-repeat
forgottofly
source share