angular-docs-cn/packages/router/src
Andrew Scott c33a8235d9 fix(router): correctly handle string command in outlets (#39728)
There are many places where examples use just a string for the command
in outlets. When using nested outlets, we do not correctly handle
this case, as the types and algorithm always expect an array.
This PR updates the `createUrlTree` algorithm to account for the
possibility of a string literal as the command for an outlet.

Fixes #18928

PR Close #39728
2020-11-20 08:38:31 -08:00
..
components build: update license headers to reference Google LLC (#37205) 2020-05-26 14:26:58 -04:00
directives fix(router): remove preserveQueryParams symbol (#38762) 2020-10-14 10:40:55 -07:00
operators revert: feat(router): better warning message when a router outlet has not been instantiated (#38920) 2020-09-21 09:35:06 -07:00
utils fix(router): update getRouteGuards to check if the context outlet is activated (#39049) 2020-09-30 14:58:47 -07:00
apply_redirects.ts refactor(router): Remove `defer` as it's not needed anymore (#38781) 2020-09-10 08:55:31 -07: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(router): Fix ActivationEnd link (#39469) 2020-10-28 11:06:04 -07: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): remove duplicated getOutlet function (#39764) 2020-11-20 08:31:14 -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 fix(router): incorrect signature for createUrlTree (#39347) 2020-10-20 13:36:12 -07:00
router_config_loader.ts refactor(router): extract Router config utils to a separate file (#38229) 2020-07-27 09:49:14 -07:00
router_module.ts feat(router): add new initialNavigation options to replace legacy (#37480) 2020-10-14 11:20:51 -07: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: update router api documentation (#37980) 2020-07-16 13:52:40 -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 fix(router): properly compare array queryParams for equality (#37709) (#37860) 2020-07-06 13:50:32 -07:00
version.ts build: update license headers to reference Google LLC (#37205) 2020-05-26 14:26:58 -04:00