From e87772f5d59af252af79854db96eba7d2f1ea264 Mon Sep 17 00:00:00 2001 From: Zhicheng Wang Date: Tue, 27 Sep 2016 10:15:33 +0800 Subject: [PATCH] =?UTF-8?q?=E6=94=B9=E6=AD=A3=E9=94=99=E8=AF=AF?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit #82 --- public/docs/ts/latest/guide/attribute-directives.jade | 2 +- public/docs/ts/latest/guide/structural-directives.jade | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/public/docs/ts/latest/guide/attribute-directives.jade b/public/docs/ts/latest/guide/attribute-directives.jade index 6e76300bbb..bdac66337d 100644 --- a/public/docs/ts/latest/guide/attribute-directives.jade +++ b/public/docs/ts/latest/guide/attribute-directives.jade @@ -238,7 +238,7 @@ figure.image-display Did you remember to add the directive to the the `declarations` attribute of `@NgModule`? It is easy to forget! - 你记着设置`@Component`的`directives`数组了吗?它很容易被忘掉。 + 你记着设置`@NgModule`的`declarations`数组了吗?它很容易被忘掉。 Open the console in the browser tools and look for an error like this: diff --git a/public/docs/ts/latest/guide/structural-directives.jade b/public/docs/ts/latest/guide/structural-directives.jade index cf8708c73f..a56dad71f8 100644 --- a/public/docs/ts/latest/guide/structural-directives.jade +++ b/public/docs/ts/latest/guide/structural-directives.jade @@ -473,7 +473,7 @@ block unless-intro Now we add it to the `declarations` array of the AppModule and try it. First we add some test HTML to the template: - 现在,我们就来把它加到宿主组件的`directives`数组中,试一试。 + 现在,我们就来把它加到AppModule的`declarations`数组中,试一试。 我们首先把一些测试用的HTML添加到模板中: +makeExample('structural-directives/ts/app/structural-directives.component.html', 'myUnless')(format=".")