<div data-ng-repeat="practice in practiceList">
<select data-ng-model="myPractice"
data-ng-options="practice.combinedAreaRank for practice in practiceareasApi"
data-ng-click="clearField()"
data-ng-disabled="!myOffice">
<option value="">Select</option>
</select>
</div>
I have the following code. and I want to have for every repeat, the name in ng-model to change, so I whenever I will generate a new select drop-down, I could check for some value in the previous one.
what I want if to generate 3 drop-down, and all of 3 will be connected to the same json, but when I select some value in the first one, the value to be deleted in the second one, and so forth.
Could I do this?
I could hard-code everything but I want to do it inside a of ng-repeat if it's possible
From what I've seen on the internet, you could generate your own directive, or some other solution, but they are not good. I want also to be kind of a best practice, and not a hack.
Thank you!