angular-cn/packages/router/src
Kristiyan Kostadinov 07c1ddc487 fix(router): error if module is destroyed before location is initialized (#42560)
This is something I ran into while working on a fix for the `TestBed` module teardown behavior for #18831. In the `RouterInitializer.appInitializer` we have a callback to the `LOCATION_INITIALIZED` which has to do some DI lookups. The problem is that if the module is destroyed before the location promise resolves, the `Injector.get` calls will fail. This is unlikely to happen in a real app, but it'll show up in unit tests once the test module teardown behavior is fixed.

PR Close #42560
2021-06-17 18:11:53 +00:00
..
components build: update license headers to reference Google LLC (#37205) 2020-05-26 14:26:58 -04:00
directives ci: add lint error for files with missing trailing new-line (#42478) 2021-06-04 13:31:03 -07:00
operators fix(router): Remove information about attached component when deactivating route (#41381) 2021-04-07 13:55:31 -07: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 docs: add note about redirects after absolute redirect (#42277) 2021-05-25 22:13:07 +00:00
create_router_state.ts fix(router): Only retrieve stored route when reuse strategy indicates it should reattach (#30263) 2021-04-15 11:32:59 -07:00
create_url_tree.ts fix(router): fragment can be null (#37336) 2021-03-22 10:02:39 -07:00
events.ts docs: add small clarity around navigationCancel (#42282) 2021-05-25 17:55:22 +00:00
index.ts feat(router): Add more find-tuned control in `routerLinkActiveOptions` (#40303) 2021-02-24 15:32:05 -08: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): 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 refactor(router): compute correct history restoration when navigation is cancelled (#38884) 2021-06-10 14:09:21 -07:00
router_config_loader.ts docs: expand documentation for ROUTES (#42398) 2021-05-27 16:47:39 -07:00
router_module.ts fix(router): error if module is destroyed before location is initialized (#42560) 2021-06-17 18:11:53 +00:00
router_outlet_context.ts feat(router): Allow for custom router outlet implementations (#40827) 2021-02-19 09:13:17 -08:00
router_preloader.ts fix(router): fix load interaction of navigation and preload strategies (#40389) 2021-02-16 11:28:50 -08: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: document shallow equality emit for ActivatedRoute (#42280) 2021-05-25 22:15:39 +00: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 fix(router): fix `serializeQueryParams` logic (#42481) 2021-06-08 10:43:00 -07:00
version.ts docs: fix package name in version.ts files in different packages (#41208) 2021-05-10 10:26:34 -04:00