RouterLinkWithHref

From Get docs
< @angular/routerAngular/docs/9/api/router/routerlinkwithhref


RouterLinkWithHref

directive

Lets you link to specific routes in your app.

See more...

NgModule

Selectors

  • a[routerLink]
  • area[routerLink]

Properties

Property Description
@Input()target: string
@Input()queryParams: { [k: string]: any; }

Passed to Router#createUrlTree as part of the NavigationExtras.

See also:

@Input()fragment: string

Passed to Router#createUrlTree as part of the NavigationExtras.

See also:

@Input()queryParamsHandling: QueryParamsHandling

Passed to Router#createUrlTree as part of the NavigationExtras.

See also:

@Input()preserveFragment: boolean

Passed to Router#createUrlTree as part of the NavigationExtras.

See also:

@Input()skipLocationChange: boolean

Passed to Router#createUrlTree as part of the NavigationExtras.

See also:

@Input()replaceUrl: boolean

Passed to Router#createUrlTree as part of the NavigationExtras.

See also:

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

Passed to Router#createUrlTree as part of the NavigationExtras.

See also:

href: string
any[]

Write-Only See also:

@Input()preserveQueryParams: boolean Write-Only
urlTree: UrlTree Read-Only

Description

See RouterLink for more information.

Methods

ngOnChanges(changes: {}): any

Parameters
changes {}
Returns

any


ngOnDestroy(): any

Parameters

There are no parameters.

Returns

any


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

Parameters
button number
ctrlKey boolean
metaKey boolean
shiftKey boolean
Returns

boolean



© 2010–2020 Google, Inc.
Licensed under the Creative Commons Attribution License 4.0.
https://v9.angular.io/api/router/RouterLinkWithHref