docs(core): describe your change... (#34513)

According to https://angular.io/guide/lifecycle-hooks#ondestroy
"Put cleanup logic in ngOnDestroy(), the logic that must run before Angular destroys the directive."
PR Close #34513
This commit is contained in:
Zac 2019-12-20 11:45:28 -05:00 committed by Miško Hevery
parent 6f68eae9dd
commit 8fbb966ca7
1 changed files with 1 additions and 1 deletions

View File

@ -116,7 +116,7 @@ export interface DoCheck {
export interface OnDestroy { export interface OnDestroy {
/** /**
* A callback method that performs custom clean-up, invoked immediately * A callback method that performs custom clean-up, invoked immediately
* after a directive, pipe, or service instance is destroyed. * before a directive, pipe, or service instance is destroyed.
*/ */
ngOnDestroy(): void; ngOnDestroy(): void;
} }