Home How to get selected option in be selected in a dropdown after opening a modal in AngularJS?
 I have a select tag like this:   The openSomeDialog() function opens a ui.bootstrap.modal directive modal. When the user closes the modal, the dropdown reverts to the initial option which is the empty one (first option) instead of what the user has selected. I also tried to use a watch on the select's ngModel and I get the same issue. If I put some non modal related logic in the function instead of opening a modal, the selection works fine so it seems the process of opening the modal changes the events workflow or something. How do I get the dropdown to select what the user has selected before the modal opened, after the modal closes?