fix: missing break lines

This commit is contained in:
Zhicheng Wang 2017-08-05 22:47:21 +08:00
parent 2e97123611
commit 2f17cb46c5

View File

@ -322,7 +322,7 @@ See these variations side-by-side:
## External template file
***外部模块文件***
## 外部模板文件
A large component template is often kept in a separate template file.
@ -348,6 +348,7 @@ The component, `HeroTitleComponent` in this case, then references the template f
</code-pane>
</code-tabs>
Note that both the _TypeScript_ and _ES6_ `templateUrl` properties identify the location of the template file _relative to the component module_.
注意_TypeScript_ 和两个_ES6_的`templateUrl`属性_相对于组件模块_来标识模板文件的位置。
@ -622,8 +623,12 @@ or rather a _constructor function_ that represents a class in _ES5_ and _plain E
The format of the `parameters` array varies:
_TypeScript_ 中最常用的令牌是类而_ES5_ 和 _普通 ES6_ 使用_构造函数_表示一个类。
因此,`parameters`数组会有所不同:* _Plain ES6_ &mdash; nest each constructor function in a sub-array.
因此,`parameters`数组会有所不同:
* _Plain ES6_ &mdash; nest each constructor function in a sub-array.
_普通 ES6_ &mdash; 函数构造嵌套在一个子数组中。
* _ES5_ &mdash; simply list the constructor functions.
_ES5_ &mdash; 简单列出构造函数。
@ -670,8 +675,12 @@ The other JavaScript dialects add a `parameters` array to the class constructor
Each item contains a new instance of `Inject`:
其它 JavaScript 方言是通过向类的构造函数添加`parameters`数组。
其中的每一项是`Inject`的实例。* _Plain ES6_ &mdash; each item is a new instance of `Inject(token)` in a sub-array.
其中的每一项是`Inject`的实例。
* _Plain ES6_ &mdash; each item is a new instance of `Inject(token)` in a sub-array.
_普通 ES6_ &mdash; 每一项是嵌套在一个子数组中的`Inject(token)`的实例。
* _ES5_ &mdash; simply list the string tokens.
_ES5_ &mdash; 简单列出字符串令牌。
@ -776,7 +785,9 @@ array as before. Use a nested array to define a parameter's complete injection s
{@a host-binding}
## Host Binding
## 宿主绑定Angular supports bindings to properties and events of the _host element_, which is the
## 宿主绑定
Angular supports bindings to properties and events of the _host element_, which is the
element whose tag matches the component selector.
Angular 支持绑定到_宿主元素_的属性和事件
@ -870,7 +881,9 @@ Several _property_ decorators query a component's nested view and content compon
_View_ children are associated with element tags that appear _within_ the component's template.
_视图_子组件与出现在组件模板_内_的元素标签相关联。_Content_ children are associated with elements that appear _between_ the component's element tags;
_视图_子组件与出现在组件模板_内_的元素标签相关联。
_Content_ children are associated with elements that appear _between_ the component's element tags;
they are projected into an `<ng-content>` slot in the component's template.
_内容_子组件与出现在组件元素标签_之间_的那些元素相关联
@ -892,8 +905,14 @@ In _ES5_ and _ES6_, you access a component's view children by adding a `queries`
The `queries` property value is a hash map.
_ES5__ES6_ 中,通过向组件元数据添加`queries`属性来访问组件的视图子组件。
`queries`属性是一个映射表。* Each _key_ is the name of a component property that will hold the view child or children.
每个_键_是用来保存视图子组件的组件属性名。* Each _value_ is a new instance of either `ViewChild` or `ViewChildren`.
`queries`属性是一个映射表。
* Each _key_ is the name of a component property that will hold the view child or children.
每个_键_是用来保存视图子组件的组件属性名。
* Each _value_ is a new instance of either `ViewChild` or `ViewChildren`.
每个_值_是`ViewChild``ViewChildren`的实例。
<code-tabs>