/** * @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 */ import {Component, NgModule} from '@angular/core'; import {BrowserModule} from '@angular/platform-browser'; import {AsyncObservablePipeComponent, AsyncPromisePipeComponent} from './async_pipe'; import {DatePipeComponent} from './date_pipe'; import {I18nPluralPipeComponent, I18nSelectPipeComponent} from './i18n_pipe'; import {JsonPipeComponent} from './json_pipe'; import {LowerUpperPipeComponent} from './lowerupper_pipe'; import {CurrencyPipeComponent, NumberPipeComponent, PercentPipeComponent} from './number_pipe'; import {SlicePipeListComponent, SlicePipeStringComponent} from './slice_pipe'; @Component({ selector: 'example-app', template: `

Pipe Example

async

date

json

lower, upper

number

slice

i18n

` }) export class ExampleAppComponent { } @NgModule({ declarations: [ AsyncPromisePipeComponent, AsyncObservablePipeComponent, ExampleAppComponent, JsonPipeComponent, DatePipeComponent, LowerUpperPipeComponent, NumberPipeComponent, PercentPipeComponent, CurrencyPipeComponent, SlicePipeStringComponent, SlicePipeListComponent, I18nPluralPipeComponent, I18nSelectPipeComponent ], imports: [BrowserModule], bootstrap: [ExampleAppComponent] }) export class AppModule { }