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

navClear Does Not Work with ngClick #1047

Closed
calendee opened this issue Apr 4, 2014 · 7 comments
Closed

navClear Does Not Work with ngClick #1047

calendee opened this issue Apr 4, 2014 · 7 comments

Comments

@calendee
Copy link

calendee commented Apr 4, 2014

When applying the nav-clear directive to an element that also has ng-click, the clear history functionality does not work.

Example Of navClear not working : http://codepen.io/calendee/pen/BGEan/
Example Using JS to Clear History : http://codepen.io/calendee/pen/htgBH

@ajoslin ajoslin self-assigned this Apr 4, 2014
@ajoslin
Copy link
Contributor

ajoslin commented Apr 4, 2014

The problem here is actually that the ng-click directive catches the click event and changes the state before the navClear directive is able to catch the click event and send the next state its message.

Fixing!

@ajoslin ajoslin closed this as completed in 4f47bf2 Apr 4, 2014
@ajoslin
Copy link
Contributor

ajoslin commented Apr 4, 2014

Fixed! Thanks Justin.

@rohitagg28
Copy link

Hi I am using ionic version 0.9.27, and navClear is not working with this version, as the above examples are with beta version.
So is there any fix for this version.

@calendee
Copy link
Author

@rohitagg28 We do not currently go back and update previous releases. Once we get an official release, we probably will not either unless it is a security issue. However, security issues in the front-end framework aren't really very likely.

@siovene
Copy link

siovene commented Sep 12, 2014

This seems to disabling the UI back button, but is not actually removing the previous view from history, and the hardware back button on Android phone still goes back to that. Is there a way to prevent that?

@LucGranato
Copy link

@siovene did you solve this hardware back button problem?

@siovene
Copy link

siovene commented Dec 7, 2015

@LucGranato no, sorry.

@ionitron-bot ionitron-bot bot locked and limited conversation to collaborators Sep 7, 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

5 participants