angular ui-router: get $state info of toState in resolve
问题 Update : this should be possible in angular-ui-router as of 1.0.0alpha0 . See the release notes https://github.com/angular-ui/ui-router/releases/tag/1.0.0alpha0 and the issue https://github.com/angular-ui/ui-router/issues/1018 I created. I would like to access the state's name and other attributes the app is navigating to using angular ui-router when working on the resolve. The reason: I want load some user data (including their access rights) asynchronously before allowing the app the enter