From 20d593d06725ee63fde0566fa27b018a80f40330 Mon Sep 17 00:00:00 2001 From: Zhicheng Wang Date: Wed, 7 Mar 2018 15:48:58 +0800 Subject: [PATCH] =?UTF-8?q?fix:=20=E4=BF=AE=E6=AD=A3=E6=AE=8B=E7=95=99?= =?UTF-8?q?=E9=94=99=E8=AF=AF?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- aio/content/guide/displaying-data.md | 4 ++-- aio/content/guide/ngmodule-faq.md | 4 ++-- aio/content/guide/structural-directives.md | 2 +- aio/tools/translator/utils.ts | 2 +- 4 files changed, 6 insertions(+), 6 deletions(-) diff --git a/aio/content/guide/displaying-data.md b/aio/content/guide/displaying-data.md index d8c8b3656e..c0b162c57f 100644 --- a/aio/content/guide/displaying-data.md +++ b/aio/content/guide/displaying-data.md @@ -125,8 +125,8 @@ When you bootstrap with the `AppComponent` class (in main.ts), Angu in the `index.html`, finds it, instantiates an instance of `AppComponent`, and renders it inside the `` tag. -当我们通过`main.ts`中的`AppComponent`类启动时,Angular 在`index.html`中查找一个``元素, -然后实例化一个`AppComponent`,并将其渲染到``标签中。 +当我们通过`main.ts`中的`AppComponent`类启动时,Angular 在`index.html`中查找一个``元素, +然后实例化一个`AppComponent`,并将其渲染到``标签中。 Now run the app. It should display the title and hero name: diff --git a/aio/content/guide/ngmodule-faq.md b/aio/content/guide/ngmodule-faq.md index 702b9f0e4b..b5bfd063f8 100644 --- a/aio/content/guide/ngmodule-faq.md +++ b/aio/content/guide/ngmodule-faq.md @@ -351,8 +351,8 @@ Apps pass a `Routes` object to `RouterModule.forRoot()` in order to configure th You add that result to the `imports` list of the root `AppModule`. `RouterModule.forRoot()`就是一个很好的例子。 -应用把一个`Routes`对象传给`RouterModule.forRoot`,为的就是使用路由配置全应用级的`Router`服务。 -`RouterModule.forRoot`返回一个[ModuleWithProviders](api/core/ModuleWithProviders)对象。 +应用把一个`Routes`对象传给`RouterModule.forRoot()`,为的就是使用路由配置全应用级的`Router`服务。 +`RouterModule.forRoot()`返回一个[ModuleWithProviders](api/core/ModuleWithProviders)对象。 我们把这个结果添加到根模块`AppModule`的`imports`列表中。 Only call and import a `.forRoot()` result in the root application module, `AppModule`. diff --git a/aio/content/guide/structural-directives.md b/aio/content/guide/structural-directives.md index 4e5ad84493..0449cd51b5 100644 --- a/aio/content/guide/structural-directives.md +++ b/aio/content/guide/structural-directives.md @@ -788,7 +788,7 @@ The directive's _selector_ is typically the directive's **attribute name** in sq The brackets define a CSS attribute selector. -指令的*选择器*通常是把指令的属性名括在方括号中,如`[myUnless]`。 +指令的*选择器*通常是把指令的属性名括在方括号中,如`[appUnless]`。 这个方括号定义出了一个 CSS 属性选择器。 The directive _attribute name_ should be spelled in _lowerCamelCase_ and begin with a prefix. diff --git a/aio/tools/translator/utils.ts b/aio/tools/translator/utils.ts index b9491f983f..35e0ff7d01 100644 --- a/aio/tools/translator/utils.ts +++ b/aio/tools/translator/utils.ts @@ -18,7 +18,7 @@ export function originalIsNotCodeExampleTag(entry: DictEntry): boolean { } export function originalIsNotPureCloseTag(entry: DictEntry): boolean { - return !/^<\/(td|a|div)>$/.test(entry.original); + return !/^<\/(td|a|div|header|p|figure)>$/.test(entry.original); } export function isOnlyBeginTag(text: string) {