fix: 修正残留错误

This commit is contained in:
Zhicheng Wang 2018-03-07 15:48:58 +08:00
parent 964266f4b0
commit 20d593d067
4 changed files with 6 additions and 6 deletions

View File

@ -125,8 +125,8 @@ When you bootstrap with the `AppComponent` class (in <code>main.ts</code>), Angu
in the `index.html`, finds it, instantiates an instance of `AppComponent`, and renders it
inside the `<app-root>` tag.
当我们通过`main.ts`中的`AppComponent`类启动时Angular 在`index.html`中查找一个`<my-app>`元素,
然后实例化一个`AppComponent`,并将其渲染到`<my-app>`标签中。
当我们通过`main.ts`中的`AppComponent`类启动时Angular 在`index.html`中查找一个`<app-root>`元素,
然后实例化一个`AppComponent`,并将其渲染到`<app-root>`标签中。
Now run the app. It should display the title and hero name:

View File

@ -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`.

View File

@ -788,7 +788,7 @@ The directive's _selector_ is typically the directive's **attribute name** in sq
The brackets define a CSS
<a href="https://developer.mozilla.org/en-US/docs/Web/CSS/Attribute_selectors" title="MDN: Attribute selectors">attribute selector</a>.
指令的*选择器*通常是把指令的属性名括在方括号中,如`[myUnless]`。
指令的*选择器*通常是把指令的属性名括在方括号中,如`[appUnless]`。
这个方括号定义出了一个 CSS <a href="https://developer.mozilla.org/en-US/docs/Web/CSS/Attribute_selectors" title="MDN: Attribute selectors">属性选择器</a>
The directive _attribute name_ should be spelled in _lowerCamelCase_ and begin with a prefix.

View File

@ -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) {