RouterLinkWithHref
directive
Lets you link to specific routes in your app.
NgModule
-
RouterModule
Selectors
a[routerLink]area[routerLink]
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
|
|
| any[] | Write-only. |
@Input()preserveQueryParams: boolean
|
Write-only. |
urlTree: UrlTree
|
Read-only. |
Description
See RouterLink for more information.
Methods
|
ngOnChanges() | |||
|---|---|---|---|
ngOnChanges(changes: {}): anyParameters
Returns
|
|
ngOnDestroy() |
|---|
ngOnDestroy(): anyParametersThere are no parameters. Returns
|
|
onClick() | ||||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|
onClick(button: number, ctrlKey: boolean, metaKey: boolean, shiftKey: boolean): booleanParameters
Returns
|
© 2010–2019 Google, Inc.
Licensed under the Creative Commons Attribution License 4.0.
https://v7.angular.io/api/router/RouterLinkWithHref