docs(core): improved docs on directive lifecycle

This commit is contained in:
vsavkin 2015-03-26 17:50:18 -07:00
parent 8d85b839b6
commit d304f41197
1 changed files with 6 additions and 1 deletions

View File

@ -854,7 +854,7 @@ export class Viewport extends Directive {
* ...,
* lifecycle: [ onDestroy ]
* })
* class ClassSet implements OnDestroy {
* class ClassSet {
* onDestroy() {
* // invoked to notify directive of the containing view destruction.
* }
@ -868,6 +868,11 @@ export const onDestroy = "onDestroy";
/**
* Notify a directive when any of its bindings have changed.
*
* This method is called right after the directive's bindings have been checked,
* and before any of its children's bindings have been checked.
*
* It is invoked only if at least one of the directive's bindings has changed.
*
* ## Example:
*
* ```