fix: 修正残留错误
This commit is contained in:
parent
964266f4b0
commit
20d593d067
@ -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
|
in the `index.html`, finds it, instantiates an instance of `AppComponent`, and renders it
|
||||||
inside the `<app-root>` tag.
|
inside the `<app-root>` tag.
|
||||||
|
|
||||||
当我们通过`main.ts`中的`AppComponent`类启动时,Angular 在`index.html`中查找一个`<my-app>`元素,
|
当我们通过`main.ts`中的`AppComponent`类启动时,Angular 在`index.html`中查找一个`<app-root>`元素,
|
||||||
然后实例化一个`AppComponent`,并将其渲染到`<my-app>`标签中。
|
然后实例化一个`AppComponent`,并将其渲染到`<app-root>`标签中。
|
||||||
|
|
||||||
Now run the app. It should display the title and hero name:
|
Now run the app. It should display the title and hero name:
|
||||||
|
|
||||||
|
@ -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`.
|
You add that result to the `imports` list of the root `AppModule`.
|
||||||
|
|
||||||
`RouterModule.forRoot()`就是一个很好的例子。
|
`RouterModule.forRoot()`就是一个很好的例子。
|
||||||
应用把一个`Routes`对象传给`RouterModule.forRoot`,为的就是使用路由配置全应用级的`Router`服务。
|
应用把一个`Routes`对象传给`RouterModule.forRoot()`,为的就是使用路由配置全应用级的`Router`服务。
|
||||||
`RouterModule.forRoot`返回一个[ModuleWithProviders](api/core/ModuleWithProviders)对象。
|
`RouterModule.forRoot()`返回一个[ModuleWithProviders](api/core/ModuleWithProviders)对象。
|
||||||
我们把这个结果添加到根模块`AppModule`的`imports`列表中。
|
我们把这个结果添加到根模块`AppModule`的`imports`列表中。
|
||||||
|
|
||||||
Only call and import a `.forRoot()` result in the root application module, `AppModule`.
|
Only call and import a `.forRoot()` result in the root application module, `AppModule`.
|
||||||
|
@ -788,7 +788,7 @@ The directive's _selector_ is typically the directive's **attribute name** in sq
|
|||||||
The brackets define a CSS
|
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>.
|
<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>。
|
这个方括号定义出了一个 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.
|
The directive _attribute name_ should be spelled in _lowerCamelCase_ and begin with a prefix.
|
||||||
|
@ -18,7 +18,7 @@ export function originalIsNotCodeExampleTag(entry: DictEntry): boolean {
|
|||||||
}
|
}
|
||||||
|
|
||||||
export function originalIsNotPureCloseTag(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) {
|
export function isOnlyBeginTag(text: string) {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user