refactor(router): Simplify routerLink selector (#47941)

Since the merge of `RouterLinkWithHref` into `RouterLink` there is no need for a complex selector.

PR Close #47941
This commit is contained in:
Matthieu Riegler
2022-11-02 14:20:56 +01:00
committed by Andrew Kushnir
parent 99898f3370
commit ea3374c16b
2 changed files with 2 additions and 2 deletions
+1 -1
View File
@@ -743,7 +743,7 @@ class RouterLink implements OnChanges, OnDestroy {
// (undocumented)
get urlTree(): UrlTree | null;
// (undocumented)
static ɵdir: i0.ɵɵDirectiveDeclaration<RouterLink, ":not(a):not(area)[routerLink],a[routerLink],area[routerLink]", never, { "target": "target"; "queryParams": "queryParams"; "fragment": "fragment"; "queryParamsHandling": "queryParamsHandling"; "state": "state"; "relativeTo": "relativeTo"; "preserveFragment": "preserveFragment"; "skipLocationChange": "skipLocationChange"; "replaceUrl": "replaceUrl"; "routerLink": "routerLink"; }, {}, never, never, true, never>;
static ɵdir: i0.ɵɵDirectiveDeclaration<RouterLink, "[routerLink]", never, { "target": "target"; "queryParams": "queryParams"; "fragment": "fragment"; "queryParamsHandling": "queryParamsHandling"; "state": "state"; "relativeTo": "relativeTo"; "preserveFragment": "preserveFragment"; "skipLocationChange": "skipLocationChange"; "replaceUrl": "replaceUrl"; "routerLink": "routerLink"; }, {}, never, never, true, never>;
// (undocumented)
static ɵfac: i0.ɵɵFactoryDeclaration<RouterLink, [null, null, { attribute: "tabindex"; }, null, null, null]>;
}
@@ -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 {