mirror of
https://github.com/angular/angular
synced 2026-05-24 09:28:37 +00:00
docs(router): Fix incorrect name for url match options (#43268)
fixes #43123 PR Close #43268
This commit is contained in:
parent
c3968047b6
commit
78690ee354
1 changed files with 4 additions and 4 deletions
|
|
@ -362,7 +362,7 @@ type LocationChangeInfo = {
|
|||
};
|
||||
|
||||
/**
|
||||
* The equivalent `IsActiveUrlTreeOptions` options for `Router.isActive` is called with `true`
|
||||
* The equivalent `IsActiveMatchOptions` options for `Router.isActive` is called with `true`
|
||||
* (exact = true).
|
||||
*/
|
||||
export const exactMatchOptions: IsActiveMatchOptions = {
|
||||
|
|
@ -373,7 +373,7 @@ export const exactMatchOptions: IsActiveMatchOptions = {
|
|||
};
|
||||
|
||||
/**
|
||||
* The equivalent `IsActiveUrlTreeOptions` options for `Router.isActive` is called with `false`
|
||||
* The equivalent `IsActiveMatchOptions` options for `Router.isActive` is called with `false`
|
||||
* (exact = false).
|
||||
*/
|
||||
export const subsetMatchOptions: IsActiveMatchOptions = {
|
||||
|
|
@ -1318,9 +1318,9 @@ export class Router {
|
|||
* Returns whether the url is activated.
|
||||
*
|
||||
* @deprecated
|
||||
* Use `IsActiveUrlTreeOptions` instead.
|
||||
* Use `IsActiveMatchOptions` instead.
|
||||
*
|
||||
* - The equivalent `IsActiveUrlTreeOptions` for `true` is
|
||||
* - The equivalent `IsActiveMatchOptions` for `true` is
|
||||
* `{paths: 'exact', queryParams: 'exact', fragment: 'ignored', matrixParams: 'ignored'}`.
|
||||
* - The equivalent for `false` is
|
||||
* `{paths: 'subset', queryParams: 'subset', fragment: 'ignored', matrixParams: 'ignored'}`.
|
||||
|
|
|
|||
Loading…
Reference in a new issue