2015-11-05 14:58:24 -08:00
|
|
|
/**
|
|
|
|
* @module
|
|
|
|
* @description
|
|
|
|
* This module provides a set of common Pipes.
|
|
|
|
*/
|
|
|
|
import {AsyncPipe} from './async_pipe';
|
|
|
|
import {UpperCasePipe} from './uppercase_pipe';
|
|
|
|
import {LowerCasePipe} from './lowercase_pipe';
|
|
|
|
import {JsonPipe} from './json_pipe';
|
|
|
|
import {SlicePipe} from './slice_pipe';
|
|
|
|
import {DatePipe} from './date_pipe';
|
|
|
|
import {DecimalPipe, PercentPipe, CurrencyPipe} from './number_pipe';
|
2015-12-27 08:05:25 +02:00
|
|
|
import {ReplacePipe} from './replace_pipe';
|
2015-11-06 17:34:07 -08:00
|
|
|
import {CONST_EXPR} from 'angular2/src/facade/lang';
|
2015-11-05 14:58:24 -08:00
|
|
|
|
2015-12-03 15:49:09 -08:00
|
|
|
/**
|
|
|
|
* A collection of Angular core pipes that are likely to be used in each and every
|
|
|
|
* application.
|
|
|
|
*
|
|
|
|
* This collection can be used to quickly enumerate all the built-in pipes in the `pipes`
|
|
|
|
* property of the `@Component` or `@View` decorators.
|
|
|
|
*/
|
2015-11-05 14:58:24 -08:00
|
|
|
export const COMMON_PIPES = CONST_EXPR([
|
|
|
|
AsyncPipe,
|
|
|
|
UpperCasePipe,
|
|
|
|
LowerCasePipe,
|
|
|
|
JsonPipe,
|
|
|
|
SlicePipe,
|
|
|
|
DecimalPipe,
|
|
|
|
PercentPipe,
|
|
|
|
CurrencyPipe,
|
2015-12-27 08:05:25 +02:00
|
|
|
DatePipe,
|
|
|
|
ReplacePipe
|
2015-11-05 14:58:24 -08:00
|
|
|
]);
|