We create our drop-downs dynamically and like that we put them on the page, very generic. Currently, I need to have 2 drop-downs dependent on each other, employee - role. Because the drop-downs are dynamic, there is no relationship between them.
Using AngularJS, what would be a good way to create cascading between the 2 drop-downs? I thought of the onChange event for the drop down, but how can I "inject" this event to the drop down after the dom has completing its cycle?
ng-changeto update the array used for the second dropdown