-
Notifications
You must be signed in to change notification settings - Fork 3k
State transition occurring before resolving dependency #2048
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
This could potentially be a bug but I'm not sure if it should be solved here or at $couchPotato. It would seem here since it works in one version and not the next. |
$couchPotato returns a function, The goal should resolve this function, isn't it? I think not, because the same version of couchPotato works with 0.2.14, something has changed to 0.2.15? |
I've encountered a similar issue after upgrading to version When initially transitioning to a route, the dependencies are resolved and controller is executed. However when revisiting the same route after navigating away, the controller is executed, then dependencies are resolved, and the state transition finally occurs. It appears to be a regression because after downgrading to version |
Move the resolve out of the view, and into the state definition.
|
I believe the original reported issue is "not a bug" since Please open a new issue if there is something else going on here, as @cah-ricksuggs suggests. |
I think i'm getting a related issue than #2047, but the scenarios is different and I'm using a 3th-party plugin to resolve my dependencies.
The problem is the state transition is occurring before resolve dependencies. For this reason the controller isn't loaded on mudule.
$couchPotato is a component that Lazy-Load and Register Components in AngularJS Applications
I'm using angular 1.4.1
The text was updated successfully, but these errors were encountered: