67
rated 0 times
[
70]
[
3]
/ answers: 1 / hits: 17829
/ 9 Years ago, fri, september 25, 2015, 12:00:00
I'm figuring out how can I save the values that are entered in the input text box inside ng-repeat
on a single click of a button.I have seen examples like this getting values from text box that lets user to save each text box individually.
Below is a 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>
More From » angularjs