doc(lifecycle): minor fixes

This commit is contained in:
Victor Berchet 2015-03-30 10:03:51 +02:00
parent 136f64f4ac
commit 48811cd805
1 changed files with 6 additions and 4 deletions

View File

@ -410,7 +410,7 @@ export class Directive extends Injectable {
/** /**
* Specifies a set of lifecycle events in which the directive participates. * 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<LifecycleEvent> lifecycle:List; //List<LifecycleEvent>
@ -437,7 +437,7 @@ export class Directive extends Injectable {
/** /**
* Returns true if a directive participates in a given [LifecycleEvent]. * 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 { hasLifecycleHook(hook:string):boolean {
return isPresent(this.lifecycle) ? ListWrapper.contains(this.lifecycle, hook) : false; return isPresent(this.lifecycle) ? ListWrapper.contains(this.lifecycle, hook) : false;
@ -851,7 +851,7 @@ export class Viewport extends Directive {
* ``` * ```
* @Decorator({ * @Decorator({
* ..., * ...,
* lifecycle: [ onDestroy ] * lifecycle: [onDestroy]
* }) * })
* class ClassSet { * class ClassSet {
* onDestroy() { * onDestroy() {
@ -880,7 +880,8 @@ export const onDestroy = "onDestroy";
* bind: { * bind: {
* 'propA': 'propA' * 'propA': 'propA'
* 'propB': 'propB' * 'propB': 'propB'
* } * },
* lifecycle: [onChange]
* }) * })
* class ClassSet { * class ClassSet {
* propA; * propA;
@ -908,6 +909,7 @@ export const onChange = "onChange";
* ``` * ```
* @Decorator({ * @Decorator({
* selector: '[class-set]', * selector: '[class-set]',
* lifecycle: [onAllChangesDone]
* }) * })
* class ClassSet { * class ClassSet {
* *