填寫這份《一分鐘調查》,幫我們(開發組)做得更好!去填寫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.