angular-ui / ui-router

The de-facto solution to flexible routing with nested views in AngularJS
http://ui-router.github.io/
MIT License
13.54k stars 3k forks source link

$onChanges in lieu of uiOnParamsChanged #3513

Closed langdonx closed 4 years ago

langdonx commented 7 years ago

This is a:

My version of UI-Router is: 1.0.5

Feature Request

When using components and dynamic params, is it possible to participate in AngularJS' component lifecycle and trigger $onChanges (or maybe even call it manually) instead of the ui-router specific uiOnParamsChanged? It took me a bit to figure out why $onChanges wasn't firing already with browser navigation and to uncover that magic method.

Potentially related: https://github.com/angular-ui/ui-router/issues/3210, https://github.com/angular-ui/ui-router/issues/3399

stale[bot] commented 4 years ago

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.