RouterLinkWithHref

Stable

Directive

What it does

Lets you link to specific parts of your app.

See RouterLink for more information.

Class Overview

class RouterLinkWithHref implements OnChanges, OnDestroy {
constructor(router: Router, route: ActivatedRoute, locationStrategy: LocationStrategy)

target : string
queryParams : {[k: string]: any}
fragment : string
preserveQueryParams : boolean
preserveFragment : boolean
skipLocationChange : boolean
replaceUrl : boolean
href : string
routerLink 
ngOnChanges(changes: {}) : any
ngOnDestroy() : any
onClick(button: number, ctrlKey: boolean, metaKey: boolean) : boolean
urlTree : UrlTree

}

Selectors

a[routerLink]

Class Description

Constructor

constructor(router: Router, route: ActivatedRoute, locationStrategy: LocationStrategy)

Class Details

exported from @angular/router/index, defined in @angular/router/src/directives/router_link.ts