Skip to content
This repository was archived by the owner on May 29, 2019. It is now read-only.

$uibModalStack Ability to trigger global events #6301

Open
touqeershafi opened this issue Oct 26, 2016 · 1 comment
Open

$uibModalStack Ability to trigger global events #6301

touqeershafi opened this issue Oct 26, 2016 · 1 comment

Comments

@touqeershafi
Copy link

touqeershafi commented Oct 26, 2016

In my application i have a lots of popups so i cannot attach particular event on every modal open or closed state so that's why i need ability to trigger event on closed and on opened state when any modal opens or closed.

Example:

$uibModalStack.opened.then(function(){
// Trigger when any modal is opened
})

$uibModalStack.closed.then(function(){
// Trigger when any modal is closed
})
@wesleycho
Copy link
Contributor

Why not write a wrapper service around $modal that lets you do this? This would add a not insignificant amount of code to the library to something you can already accomplish in your codebase for a low use case.

I am inclined to not add such a feature to the library itself given the overhead.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

No branches or pull requests

2 participants