feat(core): added missing interfaces for onDestroy and onAllChangesDone lifecycle events

This commit is contained in:
vsavkin 2015-05-27 08:07:37 -07:00
parent 34d75e8918
commit 2b6a653050
1 changed files with 10 additions and 0 deletions

View File

@ -5,3 +5,13 @@ import {StringMap} from 'angular2/src/facade/collection';
* properties are updated. * properties are updated.
*/ */
export interface OnChange { onChange(changes: StringMap<string, any>): void; } export interface OnChange { onChange(changes: StringMap<string, any>): void; }
/**
* Defines lifecycle method [onDestroy] called when a directive is being destroyed.
*/
export interface OnDestroy { onDestroy(): void; }
/**
* Defines lifecycle method [onAllChangesDone ] called when the bindings of all its children have been changed.
*/
export interface OnAllChangesDone { onAllChangesDone (): void; }