-
Notifications
You must be signed in to change notification settings - Fork 3k
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
$onInit is called twice when componentProvider is used #3735
Labels
Comments
mlnkw
added a commit
to mlnkw/ui-router
that referenced
this issue
Jun 9, 2019
avoid extra trigger for $onInit (fixing angular-ui#3735)
mlnkw
added a commit
to mlnkw/ui-router
that referenced
this issue
Jun 9, 2019
check extra trigger for $onInit (angular-ui#3735)
#3779 appears to fix this issue. |
This issue has been automatically marked as stale because it has not had This does not mean that the issue is invalid. Valid issues Thank you for your contributions. |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
This is a:
My version of UI-Router is: 1.0.20
Bug Report
Current Behavior:
$onInit
is called twice whencomponentProvider
is used.Expected Behavior:
$onInit
should be called once.Link to Plunker or stackblitz that reproduces the issue:
Navigating to about fires
$onInit
twice (componentProvider
). Home only once (component
).https://stackblitz.com/edit/ui-router-angularjs-g5wlce?file=app.js
This issue have been introduced recently, I think it worked in 1.0.17.
The text was updated successfully, but these errors were encountered: