@@ -8,10 +8,7 @@ import {StringMap} from 'angular2/src/core/facade/collection';
88 * - `AfterContentInit`,
99 * - `AfterContentChecked`,
1010 * - `OnDestroy` (at the very end before destruction)
11- *
12- * // todo(vicb): describe Dart & TS vs JS
1311 */
14- export interface LifecycleHook { }
1512
1613/**
1714 * Notify a directive when any of its bindings have changed.
@@ -41,7 +38,7 @@ export interface LifecycleHook {}
4138 * }
4239 * ```
4340 */
44- export class OnChanges implements LifecycleHook {
41+ export class OnChanges {
4542 onChanges ( changes : StringMap < string , any > ) : void { }
4643}
4744
@@ -63,7 +60,7 @@ export class OnChanges implements LifecycleHook {
6360 * }
6461 * ```
6562 */
66- export class OnInit implements LifecycleHook {
63+ export class OnInit {
6764 onInit ( ) : void { }
6865}
6966
@@ -86,7 +83,7 @@ export class OnInit implements LifecycleHook {
8683 * }
8784 * ```
8885 */
89- export class DoCheck implements LifecycleHook {
86+ export class DoCheck {
9087 doCheck ( ) : void { }
9188}
9289
@@ -104,7 +101,7 @@ export class DoCheck implements LifecycleHook {
104101 * }
105102 * ```
106103 */
107- export class OnDestroy implements LifecycleHook {
104+ export class OnDestroy {
108105 onDestroy ( ) : void { }
109106}
110107
@@ -122,7 +119,7 @@ export class OnDestroy implements LifecycleHook {
122119 * }
123120 * ```
124121 */
125- export class AfterContentInit implements LifecycleHook {
122+ export class AfterContentInit {
126123 afterContentInit ( ) : void { }
127124}
128125
@@ -140,7 +137,7 @@ export class AfterContentInit implements LifecycleHook {
140137 * }
141138 * ```
142139 */
143- export class AfterContentChecked implements LifecycleHook {
140+ export class AfterContentChecked {
144141 afterContentChecked ( ) : void { }
145142}
146143
@@ -158,7 +155,7 @@ export class AfterContentChecked implements LifecycleHook {
158155 * }
159156 * ```
160157 */
161- export class AfterViewInit implements LifecycleHook {
158+ export class AfterViewInit {
162159 afterViewInit ( ) : void { }
163160}
164161
@@ -176,6 +173,6 @@ export class AfterViewInit implements LifecycleHook {
176173 * }
177174 * ```
178175 */
179- export class AfterViewChecked implements LifecycleHook {
176+ export class AfterViewChecked {
180177 afterViewChecked ( ) : void { }
181178}
0 commit comments