src/testing/router-link-directive-stub.ts
Selector | [routerLink] |
Properties |
Inputs |
HostListeners |
routerLink | |
Type : any
|
|
Defined in src/testing/router-link-directive-stub.ts:7
|
click |
click()
|
Defined in src/testing/router-link-directive-stub.ts:11
|
navigatedTo |
Type : any
|
Default value : null
|
Defined in src/testing/router-link-directive-stub.ts:8
|
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;
}
}