Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions modules/@angular/core/src/metadata/lifecycle_hooks.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down Expand Up @@ -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'}
*
Expand Down