angular-cn/packages/router/src
Martin Sikora b37a9eba1a fix(router): lazy loaded modules without RouterModule.forChild() won't cause an infinite loop (#36605)
When loading a module that doesn't provide `RouterModule.forChild()` preloader will get stuck
in an infinite loop and throw `ERROR Error: Maximum call stack size exceeded.`
The issue is that child module's `Injector` will look to its parent `Injector` when it doesn't
find any `ROUTES` so it will return routes for it's parent module instead. This will load the
child again that returns its parent's routes and so on.

Closes #29164

PR Close #36605
2021-01-15 10:39:55 -08:00
..
components build: update license headers to reference Google LLC (#37205) 2020-05-26 14:26:58 -04:00
directives docs: remove duplicated the (#40434) 2021-01-14 11:33:57 -08:00
operators refactor(router): refactor and simplify router RxJS chains (#40290) 2021-01-11 15:30:55 -08:00
utils refactor(router): refactor and simplify router RxJS chains (#40290) 2021-01-11 15:30:55 -08:00
apply_redirects.ts docs: remove duplicated the (#40434) 2021-01-14 11:33:57 -08:00
config.ts refactor(router): Adjust type of parameter in navigateByUrl and createUrlTree to be more accurate (#38227) 2020-09-25 10:36:13 -04:00
create_router_state.ts fix(router): Fix arguments order for call to shouldReuseRoute (#26949) 2020-09-15 11:33:52 -07:00
create_url_tree.ts fix(router): correctly handle string command in outlets (#39728) 2020-11-20 08:38:31 -08:00
events.ts docs: remove duplicated the (#40434) 2021-01-14 11:33:57 -08:00
index.ts refactor(router): Adjust type of parameter in navigateByUrl and createUrlTree to be more accurate (#38227) 2020-09-25 10:36:13 -04:00
interfaces.ts docs: update reference doc for router guards and resolvers (#38079) 2020-07-15 12:32:10 -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): apply redirects should match named outlets with empty path parents (#40029) 2021-01-05 12:43:47 -08:00
route_reuse_strategy.ts fix(router): export DefaultRouteReuseStrategy to Router public_api (#31575) 2020-08-13 16:02:41 -07:00
router.ts refactor(router): refactor and simplify router RxJS chains (#40290) 2021-01-11 15:30:55 -08:00
router_config_loader.ts fix(router): lazy loaded modules without RouterModule.forChild() won't cause an infinite loop (#36605) 2021-01-15 10:39:55 -08:00
router_module.ts docs(router): clarify the description of legacy relativeLinkResolution (#40384) 2021-01-11 14:09:40 -08:00
router_outlet_context.ts build: update license headers to reference Google LLC (#37205) 2020-05-26 14:26:58 -04:00
router_preloader.ts docs(router): fixed PreloadAllModules comment typo (#38758) 2020-09-09 09:07:49 -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 docs(router): Clearly document how to retrieve all params in the router tree (#40306) 2021-01-08 11:47:47 -08: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): Extract common functions for config matching (#40029) 2021-01-05 12:43:47 -08:00
version.ts build: update license headers to reference Google LLC (#37205) 2020-05-26 14:26:58 -04:00