(commandsOrUrlTree: readonly any[] | string | UrlTree | null | undefined)
| 453 | */ |
| 454 | @Input() |
| 455 | set routerLink(commandsOrUrlTree: readonly any[] | string | UrlTree | null | undefined) { |
| 456 | if (commandsOrUrlTree == null) { |
| 457 | this.routerLinkInput.set(null); |
| 458 | this.setTabIndexIfNotOnNativeEl(null); |
| 459 | } else { |
| 460 | if (isUrlTree(commandsOrUrlTree)) { |
| 461 | this.routerLinkInput.set(commandsOrUrlTree); |
| 462 | } else { |
| 463 | this.routerLinkInput.set( |
| 464 | Array.isArray(commandsOrUrlTree) ? commandsOrUrlTree : [commandsOrUrlTree], |
| 465 | ); |
| 466 | } |
| 467 | this.setTabIndexIfNotOnNativeEl('0'); |
| 468 | } |
| 469 | } |
| 470 | |
| 471 | /** @docs-private */ |
| 472 | @HostListener('click', [ |
nothing calls this directly
no test coverage detected