fix(pipes): add triple ticks around async_pipe code sample
Closes #4110
This commit is contained in:
parent
267121ee17
commit
7b3161a229
|
@ -44,6 +44,7 @@ var _observableStrategy = new ObservableStrategy();
|
||||||
* The example below binds the `time` Observable to the view. Every 500ms, the `time` Observable
|
* The example below binds the `time` Observable to the view. Every 500ms, the `time` Observable
|
||||||
* updates the view with the current time.
|
* updates the view with the current time.
|
||||||
*
|
*
|
||||||
|
* ```
|
||||||
* import {Observable} from 'angular2/core';
|
* import {Observable} from 'angular2/core';
|
||||||
* @Component({
|
* @Component({
|
||||||
* selector: "task-cmp"
|
* selector: "task-cmp"
|
||||||
|
@ -57,6 +58,7 @@ var _observableStrategy = new ObservableStrategy();
|
||||||
* observer.next(new Date().getTime()), 500);
|
* observer.next(new Date().getTime()), 500);
|
||||||
* });
|
* });
|
||||||
* }
|
* }
|
||||||
|
* ```
|
||||||
*/
|
*/
|
||||||
@Pipe({name: 'async', pure: false})
|
@Pipe({name: 'async', pure: false})
|
||||||
@Injectable()
|
@Injectable()
|
||||||
|
|
Loading…
Reference in New Issue