Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
wants to merge 2 commits into
base: master
Choose a base branch
from

Conversation

konstantinkrassmann
Copy link

@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.

None yet

1 participant