doc(lifecycle): minor fixes
This commit is contained in:
parent
136f64f4ac
commit
48811cd805
|
@ -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 {
|
||||||
*
|
*
|
||||||
|
|
Loading…
Reference in New Issue