W3cubDocs

/Angular 2

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

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

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

© 2010–2017 Google, Inc.
Licensed under the Creative Commons Attribution License 4.0.
https://v2.angular.io/docs/ts/latest/api/router/index/RouterLinkWithHref-directive.html