We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
see comments in #1319
The text was updated successfully, but these errors were encountered:
@nateabele should we change this code to generate a "#" url (or "" in html5mode)?
"#"
""
https://github.com/angular-ui/ui-router/blob/master/src/state.js#L1119
That way we'll return an empty string or hash and the ui-sref will be clickable (nav set to true).
nav
https://github.com/angular-ui/ui-router/blob/master/src/stateDirectives.js#L112
We'll still need the check for preventDefault, but only in html5mode, or actually when the generated href is "".
See PR #1363 ... it's only generating an HREF if the top state has the url: "" (as opposed to no url: at all, or url: undefined)
url: ""
url:
url: undefined
Sorry, something went wrong.
Here's the updated plunk from #1319
http://plnkr.co/edit/mkIORnnEU1udoTmoX7V0?p=preview
An empty string still wouldn't work because of https://github.com/angular/angular.js/blob/master/src/ng/directive/a.js#L42 — all nav does is avoid burning extra cycles recalculating things.
Ah, just saw the PR. Looks good, but definitely needs test coverage.
Closed via #1363
christopherthielen
No branches or pull requests
see comments in #1319
The text was updated successfully, but these errors were encountered: