Skip to content

Commit 2b6a653

Browse files
committed
feat(core): added missing interfaces for onDestroy and onAllChangesDone lifecycle events
1 parent 34d75e8 commit 2b6a653

File tree

1 file changed

+10
-0
lines changed

1 file changed

+10
-0
lines changed

modules/angular2/src/core/compiler/interfaces.ts

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,3 +5,13 @@ import {StringMap} from 'angular2/src/facade/collection';
55
* properties are updated.
66
*/
77
export interface OnChange { onChange(changes: StringMap<string, any>): void; }
8+
9+
/**
10+
* Defines lifecycle method [onDestroy] called when a directive is being destroyed.
11+
*/
12+
export interface OnDestroy { onDestroy(): void; }
13+
14+
/**
15+
* Defines lifecycle method [onAllChangesDone ] called when the bindings of all its children have been changed.
16+
*/
17+
export interface OnAllChangesDone { onAllChangesDone (): void; }

0 commit comments

Comments
 (0)