RouterLinkWithHref

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

Lets you link to specific routes in your app.

查看"说明"...

NgModule

选择器

属性

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

说明

欲知详情,参见 RouterLink

See RouterLink for more information.

方法

ngOnChanges(changes: {}): any
      
      ngOnChanges(changes: {}): any
    
参数
changes {}
返回值

any

ngOnDestroy(): any
      
      ngOnDestroy(): any
    
参数

没有参数。

返回值

any

onClick(button: number, ctrlKey: boolean, metaKey: boolean, shiftKey: boolean): boolean
      
      onClick(button: number, ctrlKey: boolean, metaKey: boolean, shiftKey: boolean): boolean
    
参数
button number
ctrlKey boolean
metaKey boolean
shiftKey boolean
返回值

boolean