BREAKING CHANGE:
Previously, pipes that wanted to be notified when they were destroyed
would implement the PipeOnDestroy interface and name the callback
`onDestroy`. This change removes the PipeOnDestroy interface and
instead uses Angular's lifecycle interface `OnDestroy`, with the
`ngOnDestroy` method.
Before:
```
import {Pipe, PipeOnDestroy} from 'angular2/angular2';
@Pipe({pure: false})
export class MyPipe implements PipeOnDestroy {
onDestroy() {}
}
```
After:
import {Pipe, OnDestroy} from 'angular2/angular2';
@Pipe({pure: false})
export class MyPipe implements PipeOnDestroy {
ngOnDestroy() {}
}
25 lines
442 B
TypeScript
25 lines
442 B
TypeScript
/**
|
|
* @module
|
|
* @description
|
|
* Change detection enables data binding in Angular.
|
|
*/
|
|
|
|
export {
|
|
ChangeDetectionStrategy,
|
|
|
|
ExpressionChangedAfterItHasBeenCheckedException,
|
|
ChangeDetectionError,
|
|
|
|
ChangeDetectorRef,
|
|
|
|
WrappedValue,
|
|
SimpleChange,
|
|
PipeTransform,
|
|
IterableDiffers,
|
|
IterableDiffer,
|
|
IterableDifferFactory,
|
|
KeyValueDiffers,
|
|
KeyValueDiffer,
|
|
KeyValueDifferFactory
|
|
} from './change_detection/change_detection';
|