docs: Fix example in breaking changes to apply to correct sentence (#48758)

The "for example..." was supposed to apply to the production code, not the test code sentence.

fixes #48744

PR Close #48758
This commit is contained in:
Andrew Scott 2023-01-17 06:43:15 -08:00 committed by Andrew Kushnir
parent b99bd9ebf6
commit fb7b8a95f2

View file

@ -156,9 +156,9 @@ In v15, the `title` property is required on [`ActivatedRouteSnapshot`](api/route
Before v15, during navigation, `RouterOutlet` instantiated the component being activated immediately. [PR #46554](https://github.com/angular/angular/pull/46554)
In v15, the component is not instantiated until after change detection runs.
This change could affect tests that do not trigger change detection after a router navigation,
This change could affect tests that do not trigger change detection after a router navigation.
This can also affect production code that relies on the exact timing of component availability,
for example, if your component's constructor calls `router.getCurrentNavigation()`.
Less common, this could affect production code that relies on the exact timing of component availability.
<a id="v15-bc-10"></a>