From 6e5fe6ff14b8e6a67b9930d07438ca7da8ab8b9d Mon Sep 17 00:00:00 2001 From: Zhicheng Wang Date: Fri, 5 May 2017 16:48:44 +0800 Subject: [PATCH] =?UTF-8?q?=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/lifecycle-hooks.jade | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/public/docs/ts/latest/guide/lifecycle-hooks.jade b/public/docs/ts/latest/guide/lifecycle-hooks.jade index 2e4064a51d..4b714f447f 100644 --- a/public/docs/ts/latest/guide/lifecycle-hooks.jade +++ b/public/docs/ts/latest/guide/lifecycle-hooks.jade @@ -67,7 +67,7 @@ figure * [DoCheck](#docheck) * [AfterView](#afterview) - + * [Abide by the unidirectional data flow rule](#wait-a-tick) [遵循单向数据流规则](#wait-a-tick) @@ -272,7 +272,11 @@ a#interface-optional Angular can't see TypeScript interfaces at runtime because they disappear from the transpiled JavaScript. 从纯技术的角度讲,接口对JavaScript和TypeScript的开发者都是可选的。JavaScript语言本身没有接口。 - Angular在运行时看不到TypeScript接口,因为它们在编译为JavaScript的时候已经消失了。Fortunately, they aren't necessary. + Angular在运行时看不到TypeScript接口,因为它们在编译为JavaScript的时候已经消失了。 + + Fortunately, they aren't necessary. + + 幸运的是,它们并不是必须的。 You don't have to add the lifecycle hook interfaces to directives and components to benefit from the hooks themselves.