$modal.open().opened with animations
I would like the opened promise of $modal.open() to resolve after any animations associated with opening the modal. Or, if the intent of opened isn't to fire after the template has been rendered, but merely loaded, I'd like a way to run some code after the template has been rendered, and the show animation has completed.
What would be your use case for such request?
Set focus on the first input in the modal.
I have another use case for this. I'm doing a series of modals, and I'd like the next one to show up after the previous one is no longer visible. Currently, they overlap for a second, and I am using the modal instance callbacks to trigger moving on to the next step.
Here's my use case: I add a form to the modal and would like to attach event handler for validation using bootstrapValidator, e.g. $("form").bootstrapValidator(...) However, the form is not rendered yet on opened event...
Here is my use case: I want to bind a editor plugin to textarea whthin modal, write to view file will make ng-model broken
One can create a custom directive to set focus on a particular input, and I'd say that would be the recommended approach for any similar DOM manipulation.