parent
79ca5433f5
commit
50f73986be
|
@ -668,7 +668,7 @@ table(width="100%")
|
|||
|
||||
Angular 2 also has **style binding**, which is good way to set a single style. This is shown in the second example.
|
||||
|
||||
Angualr 2还有**样式绑定**语法,它是单独设置一个样式的好方法。它展示在第二个例子中。
|
||||
Angular 2还有**样式绑定**语法,它是单独设置一个样式的好方法。它展示在第二个例子中。
|
||||
|
||||
For more information on style binding, see [Template Syntax](../guide/template-syntax.html#style-binding).
|
||||
|
||||
|
|
File diff suppressed because it is too large
Load Diff
|
@ -97,7 +97,7 @@ figure
|
|||
:marked
|
||||
Angular apps are modular and Angular has its own modularity system called _Angular modules_ or _NgModules_.
|
||||
|
||||
Angualr应用是模块化的,并且Angular有自己的模块系统,它被称为_Angular模块_或_NgModules_。
|
||||
Angular应用是模块化的,并且Angular有自己的模块系统,它被称为_Angular模块_或_NgModules_。
|
||||
|
||||
_Angular modules_ are a big deal.
|
||||
This page introduces modules; the [Angular modules](ngmodule.html) page covers them in depth.
|
||||
|
|
|
@ -814,7 +814,7 @@ figure
|
|||
for downgraded components. It has to do with input or output names that consist
|
||||
of multiple words. In Angular 2 we would bind these attributes using camelCase:
|
||||
|
||||
为降级过的组件使用Angualr 2的属性(Attribute)语法规则时有一个值得注意的例外。
|
||||
为降级过的组件使用Angular 2的属性(Attribute)语法规则时有一个值得注意的例外。
|
||||
它适用于由多个单词组成的输入或输出属性。在Angular 2中,我们要使用小驼峰命名法绑定这些属性:
|
||||
code-example(format="").
|
||||
[myHero]="hero"
|
||||
|
|
|
@ -317,7 +317,7 @@ h1#root-component 步骤3:创建组件并添加到应用中
|
|||
Components are the basic building blocks of Angular applications. A component controls a portion
|
||||
of the screen—a *view*—through its associated template.
|
||||
|
||||
组件是Angualr应用的基本构造块。每个组件都会通过与它相关的模板来控制屏幕上的一小块(视图)。
|
||||
组件是Angular应用的基本构造块。每个组件都会通过与它相关的模板来控制屏幕上的一小块(视图)。
|
||||
|
||||
a#app-component
|
||||
p.
|
||||
|
|
Loading…
Reference in New Issue