修订完pipes

This commit is contained in:
Zhicheng Wang 2017-04-30 18:27:28 +08:00
parent f21bc6730a
commit 63615bd533
1 changed files with 3 additions and 0 deletions

View File

@ -564,6 +564,9 @@ a#impure-flying-heroes
我们可以在<live-example></live-example>中确认,当我们输入新的英雄甚至修改#[code heroes]数组时,这个#[i 会飞的英雄]的显示也跟着更新了。 我们可以在<live-example></live-example>中确认,当我们输入新的英雄甚至修改#[code heroes]数组时,这个#[i 会飞的英雄]的显示也跟着更新了。
h3#async-pipe The impure #[i AsyncPipe] h3#async-pipe The impure #[i AsyncPipe]
h3#async-pipe 非纯#[i AsyncPipe]
:marked :marked
The Angular `AsyncPipe` is an interesting example of an impure pipe. The Angular `AsyncPipe` is an interesting example of an impure pipe.
The `AsyncPipe` accepts a `Promise` or `Observable` as input The `AsyncPipe` accepts a `Promise` or `Observable` as input