Skip to content

Access state you are in the process of transitioning to within resolve #1468

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

Closed
wburningham opened this issue Oct 21, 2014 · 3 comments
Closed

Comments

@wburningham
Copy link

Inside of a resolve function, is it possible to know what state you are transitioning to? $state.current.name has the current state, but how can I know where I am trying to go?

@wburningham
Copy link
Author

Forgot to add version info

 "angular-ui-router": "0.2.x"

@christopherthielen
Copy link
Contributor

"angular-ui-router": "0.2.x"

heh, nice try but not useful. :)

Have a look at the #1257 RFC. You can use the $transition$ injectable, but you'll have to add the ui-router-extras library until we release ui-router 1.0

@christopherthielen
Copy link
Contributor

UI-Router 1.0 preview is available: https://github.com/angular-ui/ui-router/tree/feature-1.0

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

No branches or pull requests

2 participants