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

ionicPopop scope issues #1590

Closed
danielzen opened this issue Jun 8, 2014 · 3 comments
Closed

ionicPopop scope issues #1590

danielzen opened this issue Jun 8, 2014 · 3 comments
Assignees

Comments

@danielzen
Copy link

When specifying a scope option on ionicPopup.prompt, I need to return variables from scope.$$childTail in a buttons onTap function. It appears that a child scope is created and used instead of the scope I specify.

See http://codepen.io/danielzen/pen/LFKjl/ for example and
#1589 for why I was working on this in the first place.

@perrygovier
Copy link
Contributor

Hey @danielzen, this is a symptom/feature of how Angular passes mutable objects differently than non-mutable objects like strings. If you're trying to pass strings between popup's like this, you want to pass and object who has a string property. See the following example:
http://codepen.io/perrygovier/pen/tyhrl

@perrygovier perrygovier self-assigned this Jun 9, 2014
@danielzen
Copy link
Author

OK, I see. I was able to do this with a new scope as well. Thanks.

@ionitron-bot
Copy link

ionitron-bot bot commented Sep 6, 2018

Thanks for the issue! This issue is being locked to prevent comments that are not relevant to the original issue. If this is still an issue with the latest version of Ionic, please create a new issue and ensure the template is fully filled out.

@ionitron-bot ionitron-bot bot locked and limited conversation to collaborators Sep 6, 2018
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants