From bc0a4753766a7ad7b05e9195e28911e83b573fe3 Mon Sep 17 00:00:00 2001 From: "Zhimin YE (Rex)" Date: Tue, 16 Aug 2016 12:36:08 +0100 Subject: [PATCH] review: patch up pipes. --- public/docs/ts/latest/guide/pipes.jade | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/public/docs/ts/latest/guide/pipes.jade b/public/docs/ts/latest/guide/pipes.jade index 99053a165e..ee998e6a92 100644 --- a/public/docs/ts/latest/guide/pipes.jade +++ b/public/docs/ts/latest/guide/pipes.jade @@ -351,14 +351,12 @@ a#change-detection 下面是`FlyingHeroesPipe`的实现,它遵循了我们以前见过的那些写自定义管道的模式。 +makeExample('pipes/ts/app/flying-heroes.pipe.ts', 'pure', 'app/flying-heroes.pipe.ts')(format='.') - -p. - When we run the sample now we see odd behavior (try it in the #[+liveExampleLink()]). - Every hero we add is a flying hero but none of them are displayed. :marked When we run the sample now we see odd behavior (try it in the ). Every hero we add is a flying hero but none of them are displayed. + 当运行例子时,我们看到一种奇怪的行为(试试)。添加的每个英雄都是会飞行的英雄,但是没有一个被显示出来。 + Although we're not getting the behavior we want, Angular isn't broken. It's just using a different change detection algorithm — one that ignores changes to the list or any of its items.