I got an angular dropdown list with some options. Lets say we have a dropdown list with
[List]
A
B
C
D
E
F
If you choose A you will see another dropdownlist with:
[List]
A-1
A-2
A-3
A-4
And with B
[List]
B-1
B-2
So the second list depends on what you choose in the first list. So far i got this.
Html
<div class="" ng-show="signIn">
<select ng-model="myProject" ng-options="proj.title for proj in projects | unique:'title'"><option value="">-- choose project --</option></select>
<select ng-options="myProject.name"></select>
</div>
The problem is i cant use the binded variable in the first list.. What is the best way to achieve this.