mirror of
https://github.com/angular/angular.git
synced 2026-09-14 13:54:52 +08:00
docs: replace NgIf with new template syntax @if (#59159)
PR Close #59159
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user