Is it possible to link the ng-model
of a button with the ng-repeat
loop?
<a ng-repeat="x in [1,2,3,4]" ng-model="myButton[x]">{{myButton[x]}}</a>
In the Controller:
var id = 4;
$scope.myButton[id] = ' :( ';
I am interested in creating a variable that incorporates external values. Any suggestions on how to approach this concept more efficiently would be greatly appreciated as I feel like my current method might not be the most optimal solution.