mirror of
https://github.com/angular/angular
synced 2026-05-24 09:28:37 +00:00
docs: replace NgIf with new template syntax @if (#59159)
PR Close #59159
This commit is contained in:
parent
187758ccca
commit
16ca676db0
1 changed files with 1 additions and 1 deletions
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Reference in a new issue