From 1d0ed6f75f243efa72c8aa1484028431f7b46e52 Mon Sep 17 00:00:00 2001 From: Dzmitry Shylovich Date: Tue, 13 Dec 2016 03:45:56 +0300 Subject: [PATCH] docs(core): update OnDestroy description (#13369) Closes #11228 --- modules/@angular/core/src/metadata/lifecycle_hooks.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/modules/@angular/core/src/metadata/lifecycle_hooks.ts b/modules/@angular/core/src/metadata/lifecycle_hooks.ts index 594bcc63fe..4ec2b8c37f 100644 --- a/modules/@angular/core/src/metadata/lifecycle_hooks.ts +++ b/modules/@angular/core/src/metadata/lifecycle_hooks.ts @@ -29,7 +29,7 @@ export enum LifecycleHooks { */ 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.AfterContentInit, LifecycleHooks.AfterContentChecked, LifecycleHooks.AfterViewInit, LifecycleHooks.AfterViewChecked @@ -92,7 +92,7 @@ export abstract class OnInit { abstract ngOnInit(): 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 * {@example core/ts/metadata/lifecycle_hooks_spec.ts region='OnDestroy'} *