Try to use ng-repeat
<ul>
<li ng-repeat = "n in [1,2,3,4]>
<label id="{{'p'+ n }}"> {{n}} </label>
<label ng-model="{{'p'+ n }}"> {{n}} </label>
</li>
</ul>
The first "label" works. Its "id" is assigned properly. But the second "label" doesn't work.
Is that because "ng-model" cannot be created dynamically?
I was trying to use <select ng-model ... ng-options ...>
within a ng-repeat
. Not being able to create these "ng-model" dynamically, I am stuck here.