docs(core): update OnDestroy description (#13369)

Closes #11228
This commit is contained in:
Dzmitry Shylovich 2016-12-13 03:45:56 +03:00 committed by Victor Berchet
parent 6f330a5fc9
commit 1d0ed6f75f
1 changed files with 2 additions and 2 deletions

View File

@ -29,7 +29,7 @@ export enum LifecycleHooks {
*/ */
export interface SimpleChanges { [propName: string]: SimpleChange; } export interface SimpleChanges { [propName: string]: SimpleChange; }
export var LIFECYCLE_HOOKS_VALUES = [ export const LIFECYCLE_HOOKS_VALUES = [
LifecycleHooks.OnInit, LifecycleHooks.OnDestroy, LifecycleHooks.DoCheck, LifecycleHooks.OnChanges, LifecycleHooks.OnInit, LifecycleHooks.OnDestroy, LifecycleHooks.DoCheck, LifecycleHooks.OnChanges,
LifecycleHooks.AfterContentInit, LifecycleHooks.AfterContentChecked, LifecycleHooks.AfterViewInit, LifecycleHooks.AfterContentInit, LifecycleHooks.AfterContentChecked, LifecycleHooks.AfterViewInit,
LifecycleHooks.AfterViewChecked LifecycleHooks.AfterViewChecked
@ -92,7 +92,7 @@ export abstract class OnInit { abstract ngOnInit(): void; }
export abstract class DoCheck { abstract ngDoCheck(): void; } export abstract class DoCheck { abstract ngDoCheck(): void; }
/** /**
* @whatItDoes Lifecycle hook that is called when a directive or pipe is destroyed. * @whatItDoes Lifecycle hook that is called when a directive, pipe or service is destroyed.
* @howToUse * @howToUse
* {@example core/ts/metadata/lifecycle_hooks_spec.ts region='OnDestroy'} * {@example core/ts/metadata/lifecycle_hooks_spec.ts region='OnDestroy'}
* *