Skip to content

Commit 48811cd

Browse files
committed
doc(lifecycle): minor fixes
1 parent 136f64f commit 48811cd

File tree

1 file changed

+6
-4
lines changed

1 file changed

+6
-4
lines changed

modules/angular2/src/core/annotations/annotations.js

Lines changed: 6 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -410,7 +410,7 @@ export class Directive extends Injectable {
410410
/**
411411
* Specifies a set of lifecycle events in which the directive participates.
412412
*
413-
* See: [onChange], [onDestroy] for details.
413+
* See: [onChange], [onDestroy], [onAllChangesDone] for details.
414414
*/
415415
lifecycle:List; //List<LifecycleEvent>
416416

@@ -437,7 +437,7 @@ export class Directive extends Injectable {
437437
/**
438438
* Returns true if a directive participates in a given [LifecycleEvent].
439439
*
440-
* See: [onChange], [onDestroy] for details.
440+
* See: [onChange], [onDestroy], [onAllChangesDone] for details.
441441
*/
442442
hasLifecycleHook(hook:string):boolean {
443443
return isPresent(this.lifecycle) ? ListWrapper.contains(this.lifecycle, hook) : false;
@@ -851,7 +851,7 @@ export class Viewport extends Directive {
851851
* ```
852852
* @Decorator({
853853
* ...,
854-
* lifecycle: [ onDestroy ]
854+
* lifecycle: [onDestroy]
855855
* })
856856
* class ClassSet {
857857
* onDestroy() {
@@ -880,7 +880,8 @@ export const onDestroy = "onDestroy";
880880
* bind: {
881881
* 'propA': 'propA'
882882
* 'propB': 'propB'
883-
* }
883+
* },
884+
* lifecycle: [onChange]
884885
* })
885886
* class ClassSet {
886887
* propA;
@@ -908,6 +909,7 @@ export const onChange = "onChange";
908909
* ```
909910
* @Decorator({
910911
* selector: '[class-set]',
912+
* lifecycle: [onAllChangesDone]
911913
* })
912914
* class ClassSet {
913915
*

0 commit comments

Comments
 (0)