angular/aio/content/examples/testing
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
..
e2e/src docs: make all examples compatible with strict mode (#41999) 2021-05-17 10:42:18 -07:00
src feat(router): merge RouterLinkWithHref into RouterLink (#47630) 2022-10-05 15:16:43 -07:00
example-config.json build(docs-infra): update docs examples to Angular v12.1.3 (#42949) 2021-08-09 09:41:00 -07:00
stackblitz.json build(docs-infra): remove link to custom Stackblitz for running tests (#44085) 2021-11-08 18:12:16 +00:00