Closed valterkraemer closed 4 years ago
https://github.com/angular-ui/ui-router/issues/3779 appears to fix this issue.
This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs.
This does not mean that the issue is invalid. Valid issues may be reopened.
Thank you for your contributions.
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.