填写这份《一分钟调查》,帮我们(开发组)做得更好!去填写Home

RouterLinkWithHref

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

Lets you link to specific routes in your app.

查看"说明"...

Exported from

选择器

属性

属性说明
@Input()
target: string
@Input()
queryParams?: Params | null

作为 UrlCreationOptions 的一部分传递给 Router#createUrlTree

Passed to Router#createUrlTree as part of the UrlCreationOptions.

参见:

@Input()
fragment?: string

作为 UrlCreationOptions 的一部分传递给 Router#createUrlTree

Passed to Router#createUrlTree as part of the UrlCreationOptions.

参见:

@Input()
queryParamsHandling?: QueryParamsHandling | null

作为 UrlCreationOptions 的一部分传递给 Router#createUrlTree

Passed to Router#createUrlTree as part of the UrlCreationOptions.

参见:

@Input()
preserveFragment: boolean

作为 UrlCreationOptions 的一部分传递给 Router#createUrlTree

Passed to Router#createUrlTree as part of the UrlCreationOptions.

参见:

@Input()
skipLocationChange: boolean

作为 NavigationBehaviorOptions 的一部分传递给 Router#navigateByUrl

Passed to Router#navigateByUrl as part of the NavigationBehaviorOptions.

参见:

@Input()
replaceUrl: boolean

作为 NavigationBehaviorOptions 的一部分传递给 Router#navigateByUrl

Passed to Router#navigateByUrl as part of the NavigationBehaviorOptions.

参见:

@Input()
state?: { [k: string]: any; }

作为 NavigationBehaviorOptions 的一部分传递给 Router#navigateByUrl

Passed to Router#navigateByUrl as part of the NavigationBehaviorOptions.

参见:

@Input()
relativeTo?: ActivatedRoute | null

Passed to Router#createUrlTree as part of the UrlCreationOptions. Specify a value here when you do not want to use the default value for routerLink, which is the current activated route. Note that a value of undefined here will use the routerLink default.

参见:

href: string
@Input()
routerLink: string | any[]
只写

传递给 Router#createUrlTree 的命令。

Commands to pass to Router#createUrlTree.

  • array :传递给 Router#createUrlTree 的命令。

    array: commands to pass to Router#createUrlTree.

    • string:仅包含字符串的命令数组的简写,即 ['/route']

      string: shorthand for array of commands with just the string, i.e. ['/route']

    • null | undefined :空命令数组的简写,即 []

      null|undefined: shorthand for an empty array of commands, i.e. []

参见:

urlTree: UrlTree只读

说明

欲知详情,参见 RouterLink

See RouterLink for more information.