angular-docs-cn/modules/angular2/test/core/linker
Jeff Cross fcc7ce225e refactor(pipes): use angular lifecycle hooks instead of PipeOnDestroy
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() {}
}
2015-11-30 16:40:50 -08:00
..
compiler_spec.ts refactor(compiler): make all commands const 2015-11-09 10:59:08 -08:00
directive_lifecycle_spec.dart refactor(lifecycle): prefix lifecycle methods with "ng" 2015-11-30 16:40:50 -08:00
directive_lifecycle_spec.ts refactor(lifecycle): prefix lifecycle methods with "ng" 2015-11-30 16:40:50 -08:00
directive_resolver_spec.ts refactor(test): rename test_lib to testing 2015-10-13 10:36:49 -07:00
dynamic_component_loader_spec.ts refactor(lifecycle): prefix lifecycle methods with "ng" 2015-11-30 16:40:50 -08:00
element_injector_spec.ts refactor(lifecycle): prefix lifecycle methods with "ng" 2015-11-30 16:40:50 -08:00
event_config_spec.ts refactor(test): rename test_lib to testing 2015-10-13 10:36:49 -07:00
integration_dart_spec.dart refactor(lifecycle): prefix lifecycle methods with "ng" 2015-11-30 16:40:50 -08:00
integration_spec.ts refactor(pipes): use angular lifecycle hooks instead of PipeOnDestroy 2015-11-30 16:40:50 -08:00
projection_integration_spec.ts cleanup(tooling): move tooling to the browser platform and rename profile into instrumentation 2015-11-24 19:29:52 +00:00
proto_view_factory_spec.ts refactor(test): rename test_lib to testing 2015-10-13 10:36:49 -07:00
query_integration_spec.ts refactor(lifecycle): prefix lifecycle methods with "ng" 2015-11-30 16:40:50 -08:00
query_list_spec.ts cleanup: move DomAdapter from angular2/core into angular2/platform/common_dom 2015-11-20 00:14:24 +00:00
view_container_ref_spec.ts refactor(test): rename test_lib to testing 2015-10-13 10:36:49 -07:00
view_manager_spec.ts refactor(AppViewListener): prefix listener with on for consistency 2015-10-26 18:28:27 +00:00
view_manager_utils_spec.ts cleanup: removes the render and lifecycle_hooks modules 2015-11-20 19:16:38 +00:00
view_pool_spec.ts refactor(compiler): make all commands const 2015-11-09 10:59:08 -08:00
view_resolver_spec.ts refactor(test): rename test_lib to testing 2015-10-13 10:36:49 -07:00