mirror of
https://github.com/angular/angular
synced 2026-05-24 09:28:37 +00:00
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() {}
}
|
||
|---|---|---|
| .. | ||
| compiler_spec.ts | ||
| directive_lifecycle_spec.dart | ||
| directive_lifecycle_spec.ts | ||
| directive_resolver_spec.ts | ||
| dynamic_component_loader_spec.ts | ||
| element_injector_spec.ts | ||
| event_config_spec.ts | ||
| integration_dart_spec.dart | ||
| integration_spec.ts | ||
| projection_integration_spec.ts | ||
| proto_view_factory_spec.ts | ||
| query_integration_spec.ts | ||
| query_list_spec.ts | ||
| view_container_ref_spec.ts | ||
| view_manager_spec.ts | ||
| view_manager_utils_spec.ts | ||
| view_pool_spec.ts | ||
| view_resolver_spec.ts | ||