angular.js - angularjs define variable name
迷茫
迷茫 2017-05-15 17:06:37
0
1
558

If you want to bind ng-model cyclically, how can you ensure that the names of ng-model are different?

迷茫
迷茫

业精于勤,荒于嬉;行成于思,毁于随。

reply all(1)
过去多啦不再A梦

Use an array

<p ng-repeat="item in arr">
    <input ng-model="inputs[$index]">
</p>

There is $scope.inputs array

Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template