angular/packages/router/src
unknown f44cb57c12 fix(router): prevent componentless routes from being detached (#44240)
Currently, when deactivating a route, the detach method of the RouteReuseStrategy is always called
even when we are dealing with a componentless route. If when using a custom strategy we attempt to
detach a componentless route, an exception is thrown causing the navigation to break.
This change prevents this from happening, by not triggering the detach of the route reuse strategy.

Fixes #44239

PR Close #44240
2021-11-23 17:12:27 +00:00
..
components build: update license headers to reference Google LLC (#37205) 2020-05-26 14:26:58 -04:00
directives feat(router): emit activate/deactivate events when an outlet gets attached/detached (#43333) 2021-09-28 14:16:39 -07:00
operators fix(router): prevent componentless routes from being detached (#44240) 2021-11-23 17:12:27 +00:00
utils ci: add lint error for files with missing trailing new-line (#42478) 2021-06-04 13:31:03 -07:00
apply_redirects.ts docs: add note about redirects after absolute redirect (#42277) 2021-05-25 22:13:07 +00:00
config.ts refactor(router): remove support for loadChildren string syntax (#43591) 2021-09-29 14:45:18 -07:00
create_router_state.ts fix(router): reuse route strategy fix (#43791) 2021-10-21 16:28:03 +00:00
create_url_tree.ts fix(router): fragment can be null (#37336) 2021-03-22 10:02:39 -07:00
events.ts docs(router): fix typo in router event API documentation (#43555) 2021-09-23 14:45:27 -07:00
index.ts refactor(router): remove support for loadChildren string syntax (#43591) 2021-09-29 14:45:18 -07:00
interfaces.ts docs: refactor example apps to use dynamic imports for loadChildren (#43591) 2021-09-29 14:45:17 -07:00
private_export.ts fix(router): properly assign ExtraOptions to Router in RouterTestingModule (#39096) 2020-10-05 16:35:14 -07:00
recognize.ts fix(router): recursively merge empty path matches (#41584) 2021-04-14 15:47:07 -07:00
route_reuse_strategy.ts fix(router): export DefaultRouteReuseStrategy to Router public_api (#31575) 2020-08-13 16:02:41 -07:00
router.ts Revert "refactor(router): restore history in a consistent way on canceled navigations (#43651)" (#44006) 2021-11-01 09:25:36 -07:00
router_config_loader.ts refactor(router): remove support for loadChildren string syntax (#43591) 2021-09-29 14:45:18 -07:00
router_module.ts fix(router): fix Router's public API for canceledNavigationResolution (#43842) 2021-10-15 11:35:01 -07:00
router_outlet_context.ts fix(router): unset attachRef when router-outlet is destroyed to avoid mounting a destroyed component (#43697) 2021-10-05 09:48:39 -07:00
router_preloader.ts refactor(router): remove support for loadChildren string syntax (#43591) 2021-09-29 14:45:18 -07:00
router_scroller.ts refactor(router): Add annotations to correct Router documentation (#38448) 2020-08-13 11:36:10 -07:00
router_state.ts refactor(router): ensure compatibility with noImplicitOverride (#42512) 2021-07-12 13:11:15 -07:00
shared.ts fix(router): fix error when calling ParamMap.get function (#31599) 2020-06-25 11:57:24 -07:00
url_handling_strategy.ts build: update license headers to reference Google LLC (#37205) 2020-05-26 14:26:58 -04:00
url_tree.ts refactor(router): add type annotation for UrlSegment.parameterMap (#44175) 2021-11-16 09:36:17 -08:00
version.ts docs: fix package name in version.ts files in different packages (#41208) 2021-05-10 10:26:34 -04:00