docs: document shallow equality emit for ActivatedRoute (#42280)

fixes #40769

PR Close #42280
This commit is contained in:
Andrew Scott 2021-05-24 10:19:34 -07:00 committed by Zach Arend
parent b7721aa630
commit 8228170919
1 changed files with 4 additions and 0 deletions

View File

@ -98,6 +98,10 @@ export function createEmptyStateSnapshot(
* The following example shows how to construct a component using information from a
* currently activated route.
*
* Note: the observables in this class only emit when the current and previous values differ based
* on shallow equality. For example, changing deeply nested properties in resolved `data` will not
* cause the `ActivatedRoute.data` `Observable` to emit a new value.
*
* {@example router/activated-route/module.ts region="activated-route"
* header="activated-route.component.ts"}
*