RouterLinkWithHref

Lets you link to specific routes in your app.

允许你在应用中链接到特定的路由。

See more...

NgModule

选择器

属性

属性说明
@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 只读

说明

See RouterLink for more information.

欲知详情,参见 RouterLink

方法

ngOnChanges(changes: { }): any

参数

changes

Type: { }.

返回值

any

ngOnDestroy(): any

参数

没有参数。

返回值

any

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

参数

button

Type: number.

ctrlKey

Type: boolean.

metaKey

Type: boolean.

shiftKey

Type: boolean.

返回值

boolean