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

fix(uiSref): nagivate to state when url is "" #1363

Merged
merged 1 commit into from
Sep 12, 2014
Merged

Conversation

christopherthielen
Copy link
Contributor

fix($state.href): generate href for state with url: ""

Made resolve values ignore any keys that we're actively trying to resolve, when they also exist in some parent state.
Made ui-sref ignore a single preventDefault that comes from the directive when there is no href (and the ui-sref is on an )

@nateabele
Copy link
Contributor

Looks good, but this definitely needs unit tests. Let me know if you need help on it.

fix($state.href): generate href for state with url: ""
test(uiSref): add tests for html5Mode

Made resolve values ignore any keys that we're actively trying to resolve, when they also exist in some parent state.
Made ui-sref ignore a single preventDefault that comes from the <a> directive when there is no href (and the ui-sref is on an <a>)

Closes #1363
christopherthielen added a commit that referenced this pull request Sep 12, 2014
fix(uiSref): nagivate to state when url is ""
@christopherthielen christopherthielen merged commit 3fed931 into master Sep 12, 2014
@christopherthielen christopherthielen deleted the issue-1362 branch September 12, 2014 23:27
@christopherthielen christopherthielen added this to the 0.2.12 milestone Sep 26, 2014
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