RouterLinkWithHref
directive
Lets you link to specific routes in your app.
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 | Type: |
Returns
any
ngOnDestroy() |
---|
|
onClick() | ||||||||
---|---|---|---|---|---|---|---|---|
|
button | Type: |
ctrlKey | Type: |
metaKey | Type: |
shiftKey | Type: |
Returns
boolean
© 2010–2019 Google, Inc.
Licensed under the Creative Commons Attribution License 4.0.
https://v6.angular.io/api/router/RouterLinkWithHref