From f8fd5a1ebda669fbef1477bc739660f03fe3e78d Mon Sep 17 00:00:00 2001 From: Zhicheng Wang Date: Sat, 11 Jun 2016 11:28:16 +0800 Subject: [PATCH] =?UTF-8?q?=E6=9B=B4=E6=98=8E=E7=A1=AE=E4=BA=86ngOnInit?= =?UTF-8?q?=E7=9A=84=E8=A7=A6=E5=8F=91=E6=97=B6=E6=9C=BA=EF=BC=9A=E6=AF=8F?= =?UTF-8?q?=E4=B8=AA=E8=BE=93=E5=85=A5=E5=B1=9E=E6=80=A7=E7=9A=84ngOnChang?= =?UTF-8?q?es=E9=83=BD=E5=AE=8C=E6=88=90=E9=A6=96=E6=AC=A1=E8=A7=A6?= =?UTF-8?q?=E5=8F=91=E4=B9=8B=E5=90=8E=E3=80=82?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- public/docs/ts/latest/glossary.jade | 2 +- public/docs/ts/latest/guide/lifecycle-hooks.jade | 3 ++- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/public/docs/ts/latest/glossary.jade b/public/docs/ts/latest/glossary.jade index 86fbeb5220..0f54a7000a 100644 --- a/public/docs/ts/latest/glossary.jade +++ b/public/docs/ts/latest/glossary.jade @@ -627,7 +627,7 @@ include _util-fns * `ngOnChanges` - called when an [input](#input)/[output](#output) binding values change * `ngOnChanges` - 在[输入input](#input)/[输出output](#output)绑定的值变化的时候调用。 * `ngOnInit` - after the first `ngOnChanges` - * `ngOnInit` - 在第一个`ngOnChanges`后调用。 + * `ngOnInit` - 在第一轮`ngOnChanges`完成后调用。 * `ngDoCheck` - developer's custom change detection * `ngDoCheck` - 开发者自定义变化监测器。 * `ngAfterContentInit` - after component content initialized diff --git a/public/docs/ts/latest/guide/lifecycle-hooks.jade b/public/docs/ts/latest/guide/lifecycle-hooks.jade index c2b5f3a1e8..148e984451 100644 --- a/public/docs/ts/latest/guide/lifecycle-hooks.jade +++ b/public/docs/ts/latest/guide/lifecycle-hooks.jade @@ -258,7 +258,8 @@ table(width="100%") :marked after the first `ngOnChanges`. - 在首次`ngOnChanges`之后调用。 + 在第一轮`ngOnChanges`完成之后调用。 + (译注:也就是说当每个输入属性的值都被触发了一次ngOnChanges之后才会调用ngOnInit,此时所有输入属性都已经有了正确的初始绑定值) tr(style=top) td ngDoCheck td