From 8375a8c9a8480eb80192716c27f1f4964863b3cc Mon Sep 17 00:00:00 2001 From: Andrew Scott Date: Tue, 10 Jan 2023 10:42:15 -0800 Subject: [PATCH] docs: Add heading to the router writable properties deprecation (#48684) The deprecation note is missing a header. This commit adds one. PR Close #48684 --- aio/content/guide/deprecations.md | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/aio/content/guide/deprecations.md b/aio/content/guide/deprecations.md index 32b4dc83b8f..718453baa71 100644 --- a/aio/content/guide/deprecations.md +++ b/aio/content/guide/deprecations.md @@ -379,6 +379,8 @@ The injector no longer requires the Reflect polyfill, reducing application size +### Public `Router` properties + None of the public properties of the `Router` are meant to be writeable. They should all be configured using other methods, all of which have been documented. @@ -404,6 +406,8 @@ The following options are deprecated in entirely: +### `CanLoad` guards + `CanLoad` guards in the Router are deprecated in favor of `CanMatch`. These guards execute at the same time in the lifecycle of a navigation. A `CanMatch` guard which returns false will prevent the `Route` from being matched at all and also prevent loading the children of the `Route`. `CanMatch` guards can accomplish the same