2016-06-23 16:47:54 +00:00
|
|
|
/**
|
|
|
|
|
* @license
|
|
|
|
|
* Copyright Google Inc. All Rights Reserved.
|
|
|
|
|
*
|
|
|
|
|
* Use of this source code is governed by an MIT-style license that can be
|
|
|
|
|
* found in the LICENSE file at https://angular.io/license
|
|
|
|
|
*/
|
|
|
|
|
|
2015-11-05 22:58:24 +00:00
|
|
|
/**
|
|
|
|
|
* @module
|
|
|
|
|
* @description
|
|
|
|
|
* This module provides a set of common Pipes.
|
|
|
|
|
*/
|
|
|
|
|
import {AsyncPipe} from './async_pipe';
|
|
|
|
|
import {DatePipe} from './date_pipe';
|
2016-02-26 18:02:52 +00:00
|
|
|
import {I18nPluralPipe} from './i18n_plural_pipe';
|
|
|
|
|
import {I18nSelectPipe} from './i18n_select_pipe';
|
2016-06-08 23:38:52 +00:00
|
|
|
import {JsonPipe} from './json_pipe';
|
|
|
|
|
import {LowerCasePipe} from './lowercase_pipe';
|
|
|
|
|
import {CurrencyPipe, DecimalPipe, PercentPipe} from './number_pipe';
|
|
|
|
|
import {SlicePipe} from './slice_pipe';
|
|
|
|
|
import {UpperCasePipe} from './uppercase_pipe';
|
|
|
|
|
|
2015-11-05 22:58:24 +00:00
|
|
|
|
2015-12-03 23:49:09 +00: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`
|
2016-03-08 21:36:48 +00:00
|
|
|
* property of the `@Component` decorator.
|
2016-05-27 18:24:05 +00:00
|
|
|
*
|
|
|
|
|
* @experimental Contains i18n pipes which are experimental
|
2015-12-03 23:49:09 +00:00
|
|
|
*/
|
2016-07-31 02:18:14 +00:00
|
|
|
export const COMMON_PIPES = [
|
2016-04-12 16:40:37 +00:00
|
|
|
AsyncPipe,
|
|
|
|
|
UpperCasePipe,
|
|
|
|
|
LowerCasePipe,
|
|
|
|
|
JsonPipe,
|
|
|
|
|
SlicePipe,
|
|
|
|
|
DecimalPipe,
|
|
|
|
|
PercentPipe,
|
|
|
|
|
CurrencyPipe,
|
|
|
|
|
DatePipe,
|
|
|
|
|
I18nPluralPipe,
|
2016-06-08 23:38:52 +00:00
|
|
|
I18nSelectPipe,
|
2016-04-26 04:47:33 +00:00
|
|
|
];
|