angular/packages/router/test
Andrew Kushnir f73ef21442 feat(router): merge RouterLinkWithHref into RouterLink (#47630)
This commit updates the `RouterLink` to extend the selector to also include `<a>` and `<area>` elements, which were previously matched by the `RouterLinkWithHref` directive. The code of the directives was merged together (since there was a lot of duplication) and this commit finalizes the merge. The `RouterLinkWithHref` becomes an alias of the `RouterLink` directive.

Now there is no need to import and use the `RouterLinkWithHref` class, the `RouterLink` directive will match any element that has the `routerLink` attribute.

DEPRECATED:

The `RouterLinkWithHref` directive is deprecated, use the `RouterLink` directive instead. The `RouterLink` contains the code from the `RouterLinkWithHref` to handle elements with `href` attributes.

PR Close #47630
2022-10-05 15:16:43 -07: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 feat(router): Create APIs for using Router without RouterModule (#47010) 2022-08-15 15:58:00 -07:00
BUILD.bazel build: switch devmode output to es2015 (#44505) 2022-01-05 23:20:20 +00:00
computed_state_restoration.spec.ts feat(router): Create APIs for using Router without RouterModule (#47010) 2022-08-15 15:58:00 -07: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(router): merge RouterLinkWithHref into RouterLink (#47630) 2022-10-05 15:16:43 -07:00
page_title_strategy_spec.ts fix(router): Ensure ActivatedRouteSnapshot#title has correct value (#47481) 2022-09-27 10:49:54 -07: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(router): Create APIs for using Router without RouterModule (#47010) 2022-08-15 15:58:00 -07: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(router): Create APIs for using Router without RouterModule (#47010) 2022-08-15 15:58:00 -07:00
router_scroller.spec.ts feat(router): Create APIs for using Router without RouterModule (#47010) 2022-08-15 15:58:00 -07: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