-
Notifications
You must be signed in to change notification settings - Fork 3k
get $state info of toState in resolve #1018
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
Comments
👍 for some information here, having the same issue... thanks! |
+1 for this. Just tried doing this today and am unable to. Would be happy to submit a PR for this if it's trivial. Some direction on where to look would be appreciated though as I'm not yet familiar with the code base. |
+1 |
TaylorMac proposed a good and clean workaround using a decorator - http://stackoverflow.com/a/27255909/1574201 |
this way also works.. angular.module('regions').factory('RegionsModalServices',['$modal', '$state',
]); |
+1 for this. |
This is slated for an upcoming release. |
Any idea when the version containing this feature is due for release? |
@jamesbrobb It's Open Source, so nobody really knows. 😄 We did just get the sample app running on it this morning though, so an alpha is probably due out soon. |
Fixed in 1.0-alpha, which is shipping tomorrow. |
Hi,
I would like to access the state the app is trying to navigate to in a resolve. Apparently it's possible to get the state you're navigating away from by injecting $state, but not the state you're navigating to.
I don't know whether this is a bug or a feature request. But it would be great to be able to do so. I've been able to work around it (more details in link) but I think they're all messy.
I prepared a stackoverflow question for this:
http://stackoverflow.com/questions/22985988/angular-ui-router-get-state-name-in-resolve
The text was updated successfully, but these errors were encountered: