docs: replace NgIf with new template syntax @if (#59159)

PR Close #59159
This commit is contained in:
Lang 2024-12-11 22:53:36 +01:00 committed by Miles Malerba
parent 187758ccca
commit 16ca676db0

View file

@ -132,7 +132,7 @@ TypeScript property name as a key, rather than the alias.
### ngOnDestroy
The `ngOnDestroy` method runs once just before a component is destroyed. Angular destroys a
component when it is no longer shown on the page, such as being hidden by `NgIf` or upon navigating
component when it is no longer shown on the page, such as being hidden by `@if` or upon navigating
to another page.
#### DestroyRef