angular/packages/router/test
Andrew Scott af8afee5bd fix(router): Delay router scroll event until navigated components have rendered (#47563)
Currently, the scroll event is fired immediately after the
`NavigationEnd`. However, this is problematic because a change detection
has not been able to run, meaning that Angular will not yet have run the update
block of the component templates being rendered as part of the navigation.

This change delays the scroll event using a `setTimeout`, which will
allow Angular's change detection to run before the scroll restoration is
performed.

fixes #24547

PR Close #47563
2022-10-19 23:11:17 +02:00
..
directives feat(router): make RouterOutlet name an Input so it can be set dynamically (#46569) 2022-10-04 07:57:25 -07:00
operators feat(router): allow guards and resolvers to be plain functions (#46684) 2022-08-05 10:36:46 -07:00
utils build: update license headers to reference Google LLC (#37205) 2020-05-26 14:26:58 -04:00
apply_redirects.spec.ts feat(router): allow guards and resolvers to be plain functions (#46684) 2022-08-05 10:36:46 -07:00
bootstrap.spec.ts fix(router): Delay router scroll event until navigated components have rendered (#47563) 2022-10-19 23:11:17 +02:00
BUILD.bazel build: switch devmode output to es2015 (#44505) 2022-01-05 23:20:20 +00:00
computed_state_restoration.spec.ts feat(common): add provideLocationMocks() function to provide Location mocks (#47674) 2022-10-10 19:42:11 +00:00
config.spec.ts refactor(router): Convert user-visible router errors to RuntimeError (#46562) 2022-06-29 12:50:23 -07:00
create_router_state.spec.ts feat(router): Add CanMatch guard to control whether a Route should match (#46021) 2022-06-13 22:53:49 +00:00
create_url_tree.spec.ts refactor(router): Convert user-visible router errors to RuntimeError (#46562) 2022-06-29 12:50:23 -07:00
default_export_component.ts feat(router): auto-unwrap default exports when lazy loading (#47586) 2022-10-04 14:40:58 -07:00
default_export_routes.ts feat(router): auto-unwrap default exports when lazy loading (#47586) 2022-10-04 14:40:58 -07:00
helpers.ts refactor(router): move types from config and interfaces to models (#44939) 2022-02-03 12:40:28 -08:00
integration.spec.ts feat(common): add provideLocationMocks() function to provide Location mocks (#47674) 2022-10-10 19:42:11 +00:00
page_title_strategy_spec.ts feat(common): add provideLocationMocks() function to provide Location mocks (#47674) 2022-10-10 19:42:11 +00:00
recognize.spec.ts refactor(router): Update recognize to use Observable instead of Promise (#46021) 2022-06-13 22:53:49 +00:00
regression_integration.spec.ts feat(common): add provideLocationMocks() function to provide Location mocks (#47674) 2022-10-10 19:42:11 +00:00
router.spec.ts feat(router): allow guards and resolvers to be plain functions (#46684) 2022-08-05 10:36:46 -07:00
router_link_spec.ts feat(router): merge RouterLinkWithHref into RouterLink (#47630) 2022-10-05 15:16:43 -07:00
router_preloader.spec.ts feat(common): add provideLocationMocks() function to provide Location mocks (#47674) 2022-10-10 19:42:11 +00:00
router_scroller.spec.ts fix(router): Delay router scroll event until navigated components have rendered (#47563) 2022-10-19 23:11:17 +02:00
router_state.spec.ts feat(router): expose resolved route title (#46826) 2022-07-21 09:24:56 +00:00
shared.spec.ts fix(router): fix error when calling ParamMap.get function (#31599) 2020-06-25 11:57:24 -07:00
standalone.spec.ts test(router): Ensure change detection runs after navigation (#47629) 2022-10-04 16:19:32 -07:00
url_serializer.spec.ts refactor(router): Convert user-visible router errors to RuntimeError (#46562) 2022-06-29 12:50:23 -07:00
url_tree.spec.ts fix(router): Allow question marks in query param values (#31187) 2021-08-06 10:49:37 -07:00