RouterLinkWithHref

directive

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
@Input()state?: { [k: string]: any; }
href: string
@Input()routerLink: string | any[] Write-Only
@Input()preserveQueryParams: boolean Write-Only
urlTree: UrlTree Read-Only

Description

See RouterLink for more information.

Methods

ngOnChanges(changes: {}): any

Parameters
changes {}
Returns

any

ngOnDestroy(): any

Parameters

There are no parameters.

Returns

any

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

Parameters
button number
ctrlKey boolean
metaKey boolean
shiftKey boolean
Returns

boolean

© 2010–2020 Google, Inc.
Licensed under the Creative Commons Attribution License 4.0.
https://v8.angular.io/api/router/RouterLinkWithHref