Project

General

Profile

1
/**
2
 * @license
3
 * Copyright Google Inc. All Rights Reserved.
4
 *
5
 * Use of this source code is governed by an MIT-style license that can be
6
 * found in the LICENSE file at https://angular.io/license
7
 */
8
import { CompileReflector } from './compile_reflector';
9
export declare enum LifecycleHooks {
10
    OnInit = 0,
11
    OnDestroy = 1,
12
    DoCheck = 2,
13
    OnChanges = 3,
14
    AfterContentInit = 4,
15
    AfterContentChecked = 5,
16
    AfterViewInit = 6,
17
    AfterViewChecked = 7,
18
}
19
export declare const LIFECYCLE_HOOKS_VALUES: LifecycleHooks[];
20
export declare function hasLifecycleHook(reflector: CompileReflector, hook: LifecycleHooks, token: any): boolean;
21
export declare function getAllLifecycleHooks(reflector: CompileReflector, token: any): LifecycleHooks[];
(23-23/54)