File

src/testing/router-link-directive-stub.ts

Metadata

Selector [routerLink]

Index

Properties
Inputs
HostListeners

Inputs

routerLink
Type : any

HostListeners

click
click()

Properties

navigatedTo
Type : any
Default value : null
import {Directive, HostListener, Input} from '@angular/core';

@Directive({
  selector: '[routerLink]'
})
export class RouterLinkDirectiveStub {
  @Input('routerLink') linkParams: any;
  navigatedTo: any = null;

  @HostListener('click')
  onClick(): void {
    this.navigatedTo = this.linkParams;
  }
}

result-matching ""

    No results matching ""