docs(core): improved docs on directive lifecycle
This commit is contained in:
parent
8d85b839b6
commit
d304f41197
|
@ -854,7 +854,7 @@ export class Viewport extends Directive {
|
||||||
* ...,
|
* ...,
|
||||||
* lifecycle: [ onDestroy ]
|
* lifecycle: [ onDestroy ]
|
||||||
* })
|
* })
|
||||||
* class ClassSet implements OnDestroy {
|
* class ClassSet {
|
||||||
* onDestroy() {
|
* onDestroy() {
|
||||||
* // invoked to notify directive of the containing view destruction.
|
* // 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.
|
* 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:
|
* ## Example:
|
||||||
*
|
*
|
||||||
* ```
|
* ```
|
||||||
|
|
Loading…
Reference in New Issue