From 48811cd805c98e81387998f68b5f717b01e19ef7 Mon Sep 17 00:00:00 2001 From: Victor Berchet Date: Mon, 30 Mar 2015 10:03:51 +0200 Subject: [PATCH] doc(lifecycle): minor fixes --- modules/angular2/src/core/annotations/annotations.js | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/modules/angular2/src/core/annotations/annotations.js b/modules/angular2/src/core/annotations/annotations.js index cf930eaada..7648b2bd3a 100644 --- a/modules/angular2/src/core/annotations/annotations.js +++ b/modules/angular2/src/core/annotations/annotations.js @@ -410,7 +410,7 @@ export class Directive extends Injectable { /** * Specifies a set of lifecycle events in which the directive participates. * - * See: [onChange], [onDestroy] for details. + * See: [onChange], [onDestroy], [onAllChangesDone] for details. */ lifecycle:List; //List @@ -437,7 +437,7 @@ export class Directive extends Injectable { /** * Returns true if a directive participates in a given [LifecycleEvent]. * - * See: [onChange], [onDestroy] for details. + * See: [onChange], [onDestroy], [onAllChangesDone] for details. */ hasLifecycleHook(hook:string):boolean { return isPresent(this.lifecycle) ? ListWrapper.contains(this.lifecycle, hook) : false; @@ -851,7 +851,7 @@ export class Viewport extends Directive { * ``` * @Decorator({ * ..., - * lifecycle: [ onDestroy ] + * lifecycle: [onDestroy] * }) * class ClassSet { * onDestroy() { @@ -880,7 +880,8 @@ export const onDestroy = "onDestroy"; * bind: { * 'propA': 'propA' * 'propB': 'propB' - * } + * }, + * lifecycle: [onChange] * }) * class ClassSet { * propA; @@ -908,6 +909,7 @@ export const onChange = "onChange"; * ``` * @Decorator({ * selector: '[class-set]', + * lifecycle: [onAllChangesDone] * }) * class ClassSet { *