docs: document shallow equality emit for ActivatedRoute (#42280)
fixes #40769 PR Close #42280
This commit is contained in:
parent
b7721aa630
commit
8228170919
|
@ -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"}
|
||||
*
|
||||
|
|
Loading…
Reference in New Issue