Skip to content

Commit d304f41

Browse files
committed
docs(core): improved docs on directive lifecycle
1 parent 8d85b83 commit d304f41

File tree

1 file changed

+6
-1
lines changed

1 file changed

+6
-1
lines changed

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

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -854,7 +854,7 @@ export class Viewport extends Directive {
854854
* ...,
855855
* lifecycle: [ onDestroy ]
856856
* })
857-
* class ClassSet implements OnDestroy {
857+
* class ClassSet {
858858
* onDestroy() {
859859
* // invoked to notify directive of the containing view destruction.
860860
* }
@@ -868,6 +868,11 @@ export const onDestroy = "onDestroy";
868868
/**
869869
* Notify a directive when any of its bindings have changed.
870870
*
871+
* This method is called right after the directive's bindings have been checked,
872+
* and before any of its children's bindings have been checked.
873+
*
874+
* It is invoked only if at least one of the directive's bindings has changed.
875+
*
871876
* ## Example:
872877
*
873878
* ```

0 commit comments

Comments
 (0)