mirror of
https://github.com/angular/angular
synced 2026-05-24 09:28:37 +00:00
BREAKING CHANGE:
Instead of configuring pipes via a Pipes object, now you can configure them by providing the pipes property to the View decorator.
@Pipe({
name: 'double'
})
class DoublePipe {
transform(value, args) { return value * 2; }
}
@View({
template: '{{ 10 | double}}'
pipes: [DoublePipe]
})
class CustomComponent {}
Closes #3572
|
||
|---|---|---|
| .. | ||
| compiler_spec.ts | ||
| component_url_mapper_spec.ts | ||
| directive_lifecycle_spec.dart | ||
| directive_lifecycle_spec.ts | ||
| directive_metadata_reader_spec.ts | ||
| dynamic_component_loader_spec.ts | ||
| element_injector_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 | ||