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
|
||
|---|---|---|
| .. | ||
| location_spec.ts | ||
| outlet_spec.ts | ||
| path_recognizer_spec.ts | ||
| route_config_spec.dart | ||
| route_config_spec.ts | ||
| route_recognizer_spec.ts | ||
| route_registry_spec.ts | ||
| router_integration_spec.ts | ||
| router_link_spec.ts | ||
| router_spec.ts | ||
| url_parser_spec.ts | ||