2016-06-23 09:47:54 -07: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 14:58:24 -08:00
|
|
|
/**
|
|
|
|
* @module
|
|
|
|
* @description
|
|
|
|
* This module provides a set of common Pipes.
|
|
|
|
*/
|
|
|
|
import {AsyncPipe} from './async_pipe';
|
|
|
|
import {DatePipe} from './date_pipe';
|
2016-02-26 10:02:52 -08:00
|
|
|
import {I18nPluralPipe} from './i18n_plural_pipe';
|
|
|
|
import {I18nSelectPipe} from './i18n_select_pipe';
|
2016-06-08 16:38:52 -07: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';
|
|
|
|
|
2016-09-09 12:05:06 -07:00
|
|
|
export {
|
|
|
|
AsyncPipe,
|
|
|
|
CurrencyPipe,
|
|
|
|
DatePipe,
|
|
|
|
DecimalPipe,
|
|
|
|
I18nPluralPipe,
|
|
|
|
I18nSelectPipe,
|
|
|
|
JsonPipe,
|
|
|
|
LowerCasePipe,
|
|
|
|
PercentPipe,
|
|
|
|
SlicePipe,
|
|
|
|
UpperCasePipe
|
|
|
|
};
|
2015-11-05 14:58:24 -08:00
|
|
|
|
2015-12-03 15:49:09 -08:00
|
|
|
/**
|
2016-09-09 12:05:06 -07:00
|
|
|
* A collection of Angular pipes that are likely to be used in each and every application.
|
2015-12-03 15:49:09 -08:00
|
|
|
*/
|
2016-07-30 19:18:14 -07:00
|
|
|
export const COMMON_PIPES = [
|
2016-04-12 09:40:37 -07:00
|
|
|
AsyncPipe,
|
|
|
|
UpperCasePipe,
|
|
|
|
LowerCasePipe,
|
|
|
|
JsonPipe,
|
|
|
|
SlicePipe,
|
|
|
|
DecimalPipe,
|
|
|
|
PercentPipe,
|
|
|
|
CurrencyPipe,
|
|
|
|
DatePipe,
|
|
|
|
I18nPluralPipe,
|
2016-06-08 16:38:52 -07:00
|
|
|
I18nSelectPipe,
|
2016-04-25 21:47:33 -07:00
|
|
|
];
|