This is the archived documentation for Angular v6. Please visit angular.io to see documentation for the current version of Angular.

RouterLinkWithHref

Lets you link to specific routes in your app.

See more...

NgModule

Selectors

Properties

Property Description
@Input()
target: string
@Input()
queryParams: { [k: string]: any; }
@Input()
fragment: string
@Input()
queryParamsHandling: QueryParamsHandling
@Input()
preserveFragment: boolean
@Input()
skipLocationChange: boolean
@Input()
replaceUrl: boolean
href: string
@Input()
routerLink: any[] | string
Write-only.
@Input()
preserveQueryParams: boolean
Write-only.
urlTree: UrlTree Read-only.

Description

See RouterLink for more information.

Methods

ngOnChanges(changes: { }): any
      
      ngOnChanges(changes: {
}): any
    

Parameters

changes

Type: { }.

Returns

any

ngOnDestroy(): any
      
      ngOnDestroy(): any
    

Parameters

There are no parameters.

Returns

any

onClick(button: number, ctrlKey: boolean, metaKey: boolean, shiftKey: boolean): boolean
      
      onClick(button: number, ctrlKey: boolean, metaKey: boolean, shiftKey: boolean): boolean
    

Parameters

button

Type: number.

ctrlKey

Type: boolean.

metaKey

Type: boolean.

shiftKey

Type: boolean.

Returns

boolean