diff --git a/modules/@angular/examples/core/pipes/ts/async_pipe/async_pipe_example.ts b/modules/@angular/examples/common/pipes/ts/async_pipe.ts similarity index 71% rename from modules/@angular/examples/core/pipes/ts/async_pipe/async_pipe_example.ts rename to modules/@angular/examples/common/pipes/ts/async_pipe.ts index d8692abfed..6463e4c10b 100644 --- a/modules/@angular/examples/core/pipes/ts/async_pipe/async_pipe_example.ts +++ b/modules/@angular/examples/common/pipes/ts/async_pipe.ts @@ -14,13 +14,13 @@ import {Subscriber} from 'rxjs/Subscriber'; // #docregion AsyncPipePromise @Component({ - selector: 'async-example', + selector: 'async-promise', template: `

Wait for it... {{ greeting | async }}

` }) -export class AsyncPipeExample { +export class AsyncPromiseComponent { greeting: Promise = null; arrived: boolean = false; @@ -45,29 +45,10 @@ export class AsyncPipeExample { // #enddocregion // #docregion AsyncPipeObservable -@Component({selector: 'task-cmp', template: 'Time: {{ time | async }}'}) -class Task { +@Component({selector: 'async-observable', template: '
Time: {{ time | async }}
'}) +export class AsyncObservableComponent { time = new Observable((observer: Subscriber) => { setInterval(() => observer.next(new Date().getTime()), 500); }); } // #enddocregion - -@Component({ - selector: 'example-app', - template: ` -

AsyncPipe Example

- - ` -}) -export class AppCmp { -} - -@NgModule( - {declarations: [AsyncPipeExample, AppCmp, Task], imports: [BrowserModule], bootstrap: [AppCmp]}) -class AppModule { -} - -export function main() { - platformBrowserDynamic().bootstrapModule(AppModule); -} diff --git a/modules/@angular/examples/core/pipes/ts/date_pipe/date_pipe_example.ts b/modules/@angular/examples/common/pipes/ts/date_pipe.ts similarity index 100% rename from modules/@angular/examples/core/pipes/ts/date_pipe/date_pipe_example.ts rename to modules/@angular/examples/common/pipes/ts/date_pipe.ts diff --git a/modules/@angular/examples/core/pipes/ts/json_pipe/json_pipe_example.ts b/modules/@angular/examples/common/pipes/ts/json_pipe.ts similarity index 100% rename from modules/@angular/examples/core/pipes/ts/json_pipe/json_pipe_example.ts rename to modules/@angular/examples/common/pipes/ts/json_pipe.ts diff --git a/modules/@angular/examples/core/pipes/ts/lowerupper_pipe/lowerupper_pipe_example.ts b/modules/@angular/examples/common/pipes/ts/lowerupper_pipe.ts similarity index 100% rename from modules/@angular/examples/core/pipes/ts/lowerupper_pipe/lowerupper_pipe_example.ts rename to modules/@angular/examples/common/pipes/ts/lowerupper_pipe.ts diff --git a/modules/@angular/examples/core/pipes/ts/number_pipe/number_pipe_example.ts b/modules/@angular/examples/common/pipes/ts/number_pipe.ts similarity index 100% rename from modules/@angular/examples/core/pipes/ts/number_pipe/number_pipe_example.ts rename to modules/@angular/examples/common/pipes/ts/number_pipe.ts diff --git a/modules/@angular/examples/core/pipes/ts/slice_pipe/slice_pipe_example.ts b/modules/@angular/examples/common/pipes/ts/slice_pipe.ts similarity index 100% rename from modules/@angular/examples/core/pipes/ts/slice_pipe/slice_pipe_example.ts rename to modules/@angular/examples/common/pipes/ts/slice_pipe.ts diff --git a/modules/@angular/examples/core/pipes/ts/async_pipe/index.html b/modules/@angular/examples/core/pipes/ts/async_pipe/index.html deleted file mode 100644 index 7a6a985fd8..0000000000 --- a/modules/@angular/examples/core/pipes/ts/async_pipe/index.html +++ /dev/null @@ -1,24 +0,0 @@ - - - - AsyncPipe Example - - - - - - - - - - - Loading... - - - - diff --git a/modules/@angular/examples/core/pipes/ts/date_pipe/index.html b/modules/@angular/examples/core/pipes/ts/date_pipe/index.html deleted file mode 100644 index 1d87468e1d..0000000000 --- a/modules/@angular/examples/core/pipes/ts/date_pipe/index.html +++ /dev/null @@ -1,24 +0,0 @@ - - - - DatePipe Example - - - - - - - - - - - Loading... - - - - diff --git a/modules/@angular/examples/core/pipes/ts/json_pipe/index.html b/modules/@angular/examples/core/pipes/ts/json_pipe/index.html deleted file mode 100644 index 2e9bcd2663..0000000000 --- a/modules/@angular/examples/core/pipes/ts/json_pipe/index.html +++ /dev/null @@ -1,24 +0,0 @@ - - - - JsonPipe Example - - - - - - - - - - - Loading... - - - - diff --git a/modules/@angular/examples/core/pipes/ts/lowerupper_pipe/index.html b/modules/@angular/examples/core/pipes/ts/lowerupper_pipe/index.html deleted file mode 100644 index b586d71c66..0000000000 --- a/modules/@angular/examples/core/pipes/ts/lowerupper_pipe/index.html +++ /dev/null @@ -1,24 +0,0 @@ - - - - LowercasePipe & UppercasePipe Example - - - - - - - - - - - Loading... - - - - diff --git a/modules/@angular/examples/core/pipes/ts/number_pipe/index.html b/modules/@angular/examples/core/pipes/ts/number_pipe/index.html deleted file mode 100644 index f474fb13c0..0000000000 --- a/modules/@angular/examples/core/pipes/ts/number_pipe/index.html +++ /dev/null @@ -1,24 +0,0 @@ - - - - Numeric Pipe Examples - - - - - - - - - - - Loading... - - - - diff --git a/modules/@angular/examples/core/pipes/ts/slice_pipe/index.html b/modules/@angular/examples/core/pipes/ts/slice_pipe/index.html deleted file mode 100644 index 7004a731c9..0000000000 --- a/modules/@angular/examples/core/pipes/ts/slice_pipe/index.html +++ /dev/null @@ -1,24 +0,0 @@ - - - - SlicePipe Example - - - - - - - - - - - Loading... - - - -