Skip to content

Close popup manually, access value by promise. detect closing of popup#111

Open
konstantinkrassmann wants to merge 2 commits intorajeshwarpatlolla:masterfrom
konstantinkrassmann:master
Open

Close popup manually, access value by promise. detect closing of popup#111
konstantinkrassmann wants to merge 2 commits intorajeshwarpatlolla:masterfrom
konstantinkrassmann:master

Conversation

@konstantinkrassmann
Copy link
Copy Markdown

@konstantinkrassmann konstantinkrassmann commented Mar 2, 2017

It's simple.

The $ionicPopup returns a promise, which will be resolved, when the popup closes.
This promise also has the function close attached, which will close the popup if invoked.

The passed value from the promise, will be the return value of the onTap button functions.
If undefined is passed by the promise, the popup was closed by pressing the "close" button.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants