import { Directive , Input } from '@angular/core' ; export { RouterLink } from '@angular/router' ; @ Directive ( { selector : '[routerLink]' , host : { '(click)' : 'onClick()' } , } ) export class RouterLinkDirectiveStub { @ Input ( 'routerLink' ) linkParams : any ; navigatedTo : any = null ; onClick ( ) { this . navigatedTo = this . linkParams ; } }