mirror of
https://github.com/angular/angular
synced 2026-05-24 09:28:37 +00:00
docs(docs-infra): add advanced recommendations
Added recommendation in advanced section for redirectTo and canMatch will generate an error. These properties are incompatible together
fixes #65267
(cherry picked from commit c757fd6c29)
This commit is contained in:
parent
967e111303
commit
81b6e45b60
1 changed files with 8 additions and 0 deletions
|
|
@ -2742,4 +2742,12 @@ export const RECOMMENDATIONS: Step[] = [
|
|||
action:
|
||||
'In templates parentheses are now always respected. This can lead to runtime breakages when nullish coalescing were nested in parathesis. eg `(foo?.bar).baz` will throw if `foo` is nullish as it would in native JavaScript.',
|
||||
},
|
||||
{
|
||||
possibleIn: 2000,
|
||||
necessaryAsOf: 2000,
|
||||
level: ApplicationComplexity.Advanced,
|
||||
step: '20.0.0_router_generate_error_redirectTo_and_canMatch_incompatible_together',
|
||||
action:
|
||||
'Route configurations are now validated more rigorously. Routes that combine `redirectTo` and `canMatch` protections will generate an error, as these properties are incompatible together by default.',
|
||||
},
|
||||
];
|
||||
|
|
|
|||
Loading…
Reference in a new issue