From 60bdd86c320d82af655cb5af2042549c182a2290 Mon Sep 17 00:00:00 2001 From: Zhicheng Wang Date: Wed, 17 Aug 2016 23:16:50 +0800 Subject: [PATCH] =?UTF-8?q?=E6=96=87=E5=AD=97=E5=BE=AE=E8=B0=83?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- public/docs/ts/latest/guide/router.jade | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/public/docs/ts/latest/guide/router.jade b/public/docs/ts/latest/guide/router.jade index 5f187a3d1d..c61d7a70bd 100644 --- a/public/docs/ts/latest/guide/router.jade +++ b/public/docs/ts/latest/guide/router.jade @@ -1574,8 +1574,8 @@ h4#snapshot 快照:不需要可观察(no-observable)时的替代方 We don't need to subscribe. We don't have to unsubscribe in `ngOnDestroy`. It's much simpler to write and read: - 路由器提供了一个备选方案:*快照(snapshot)*,它会给我们路由参数的初始值。这样我们就不用订阅,也就不用不得不在`ngDestroy`中反订阅了。 - 这样就更容易书写和阅读了: + 路由器提供了一个备选方案:*快照(snapshot)*,它会给我们路由参数的初始值。这样我们就不用订阅,也不用被迫在`ngDestroy`中反订阅了。 + 这样会更容易书写和阅读: +makeExample('router/ts/app/heroes/hero-detail.component.2.ts','snapshot')(format=".")