-
Notifications
You must be signed in to change notification settings - Fork 3k
Strange behavior on resolve and $scope #1353
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
Thanks for the plunkrs. |
This was a pain in the butt to track down. 👎 to $resolve plunk with PR #1360 integrated: |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
I have nested states.
The parent state has a resolve for 'item'.
The child state also has resolve for a variable 'item'.
When I navigate to the child state through the URL all works fine.
When I navigate to the child state through $state.go or ui-sref the $scope is messed up.
If I press F5 on the child state all works fine.
Conclusion:
Nested states with same resolves in parent and child results in inconsistent $scope
Examples - Please see console for debug output.
Example in Version 0.2.11:
http://plnkr.co/edit/BThnqNrZa4b9SRcZG8qv?p=preview
same Example in Version 0.2.10:
http://plnkr.co/edit/Hm22nLoOsf3zBJKx79TB?p=preview
another Example in Version 0.2.11 with abstract parent:
http://plnkr.co/edit/CjzSIGqOCZKaMGr9IBXI?p=preview
In Version 0.2.10 all works fine
In Version 0.2.11 it is an BUG
The text was updated successfully, but these errors were encountered: