angular-cn/packages/router/src/utils
Jason Aden d70a7f3ac9 feat(router): add pathParamsOrQueryParamsChange mode for runGuardsAndResolvers (#27464)
This option means guards and resolvers will ignore changes to matrix parameters. Guards and resolvers will be rerun when the path changes, when path parameters change, or when query parameters change.

The primary use case for such a mode is when updating the UI and getting the URL to be in sync with local changes. For example, if displaying a sortable table, changing the sort direction is often handled by the table itself. But you would want to update the URL to be in sync with what's being displayed to the user. As long as the table sort direction is stored as a matrix parameter, you can use this option to update the URL without causing the overhead of re-running guards and resolvers.

Related to #26861 #18253

PR Close #27464
2018-12-05 10:43:29 -08:00
..
collection.ts feat(router): allow guards to return UrlTree as well as boolean (#26521) 2018-10-31 19:51:50 -04:00
preactivation.ts feat(router): add pathParamsOrQueryParamsChange mode for runGuardsAndResolvers (#27464) 2018-12-05 10:43:29 -08:00
tree.ts feat(router): add events tracking activation of individual routes 2017-08-01 10:44:00 -07:00
type_guards.ts feat(router): guard returning UrlTree cancels current navigation and redirects (#26521) 2018-10-31 19:51:50 -04:00