Home > Q&A > body text
If you want to bind ng-model cyclically, how can you ensure that the names of ng-model are different?
过去多啦不再A梦2017-05-15 17:08:37
Use an array
<p ng-repeat="item in arr"> <input ng-model="inputs[$index]"> </p>
There is $scope.inputs array