-
Notifications
You must be signed in to change notification settings - Fork 1.4k
Several button for the same Modal #1
Comments
Modals will inherit from their parent scope, so two buttons in the same scope with the same modal partial will open two identical modals. There will indeed be two modals in your dom, but since they are the result of the same template with the same scope applied on them, they will show similar content. Are your buttons in the exact same scope? I could write a patch for this specific case to reuse the existing div in the dom. |
I have a controller in the modal, so the scope is the scope of the controller. And the buttons are in separate scope.
...
I was triggering events from the differents buttons controllers with $rootscope.$broadcast, those events were caught in the LoginCtrl with |
Please provide a Plunker (http://plnkr.co/) with an example of your issue so that I can dig more. Closing this for now. |
Avoid call to $apply to improve performance
Reverting callback to as 2.3.2 in tooltip.show
This thread has been automatically locked since there has not been any recent activity after it was closed. Please open a new issue for related bugs. |
Hi,
if I have several buttons
...
willl they refer to the same instance of modal.html or several instances. I assume the latter.
How can I have several buttons to open the same modal ?
Thanks
The text was updated successfully, but these errors were encountered: