diff --git a/goldens/public-api/router/index.md b/goldens/public-api/router/index.md index 6c1976b26d6..83749ad7eef 100644 --- a/goldens/public-api/router/index.md +++ b/goldens/public-api/router/index.md @@ -743,7 +743,7 @@ class RouterLink implements OnChanges, OnDestroy { // (undocumented) get urlTree(): UrlTree | null; // (undocumented) - static ɵdir: i0.ɵɵDirectiveDeclaration; + static ɵdir: i0.ɵɵDirectiveDeclaration; // (undocumented) static ɵfac: i0.ɵɵFactoryDeclaration; } diff --git a/packages/router/src/directives/router_link.ts b/packages/router/src/directives/router_link.ts index 7c63c49a248..5fb80cb66af 100644 --- a/packages/router/src/directives/router_link.ts +++ b/packages/router/src/directives/router_link.ts @@ -116,7 +116,7 @@ import {UrlTree} from '../url_tree'; * @publicApi */ @Directive({ - selector: ':not(a):not(area)[routerLink],a[routerLink],area[routerLink]', + selector: '[routerLink]', standalone: true, }) export class RouterLink implements OnChanges, OnDestroy {