部分“格式(form)”改为“形式”

This commit is contained in:
Zhicheng Wang 2016-05-11 19:34:38 +08:00
parent bca76787bb
commit a870e4401b
5 changed files with 8 additions and 8 deletions

@ -567,7 +567,7 @@ include _util-fns
before it is assigned to an element property before it is assigned to an element property
or displayed between element tags as in this example. or displayed between element tags as in this example.
[属性数据绑定](#data-binding) 的式之一:位于双大括号中的[模板表达式](#template-expression)会被渲染成文本。在被赋值给元素属性或者显示在元素标记中之前,这些文本可能先与周边的文本合并,参见下面的例子。 [属性数据绑定](#data-binding) 的式之一:位于双大括号中的[模板表达式](#template-expression)会被渲染成文本。在被赋值给元素属性或者显示在元素标记中之前,这些文本可能先与周边的文本合并,参见下面的例子。
code-example(language="html" escape="html"). code-example(language="html" escape="html").
<label>My current hero is {{hero.name}}</label> <label>My current hero is {{hero.name}}</label>
@ -597,7 +597,7 @@ include _util-fns
This form is also known as [dash-case](#dash-case). This form is also known as [dash-case](#dash-case).
这种式也叫[中线命名法](#dash-case)。 这种式也叫[中线命名法](#dash-case)。
<a id="L"></a> <a id="L"></a>
.l-main-section .l-main-section

@ -1471,7 +1471,7 @@ code-example(format="", language="html").
:marked :marked
Alternatively, we can use the canonical prefix form: Alternatively, we can use the canonical prefix form:
另外,我们也可以使用规范前缀式: 另外,我们也可以使用规范前缀式:
// #enddocregion ngModel-2 // #enddocregion ngModel-2
+makeExample('template-syntax/ts/app/app.component.html', 'NgModel-2')(format=".") +makeExample('template-syntax/ts/app/app.component.html', 'NgModel-2')(format=".")
// #docregion ngModel-3 // #docregion ngModel-3

@ -390,7 +390,7 @@ a(id="app-component")
written in an enhanced form of HTML that tells Angular how to render this component's view. written in an enhanced form of HTML that tells Angular how to render this component's view.
**template**字段指定了此组件的模板。 **template**字段指定了此组件的模板。
它用一种增强的HTML式写成用来告诉Angular如何渲染此组件的视图。 它用一种增强的HTML式写成用来告诉Angular如何渲染此组件的视图。
>Our template is a single line of HTML announcing "*My First Angular App*". >Our template is a single line of HTML announcing "*My First Angular App*".

@ -52,7 +52,7 @@ code-example(format="" language="bash").
This command runs the compiler in watch mode, starts the server, launches the app in a browser, This command runs the compiler in watch mode, starts the server, launches the app in a browser,
and keeps the app running while we continue to build the Tour of Heroes. and keeps the app running while we continue to build the Tour of Heroes.
这个命令会在监视模式下运行编译器,启动开发服务器,在浏览器中启动我们的应用,并在我们构建《英雄指南》的时候让应用得以持续运行。 这个命令会在监视模式下运行编译器,启动开发服务器,在浏览器中启动我们的应用,并在我们构建《英雄指南》的时候让应用得以持续运行。
.l-main-section .l-main-section
:marked :marked
@ -65,7 +65,7 @@ code-example(format="" language="bash").
Let's add two properties to our `AppComponent`, a `title` property for the application name and a `hero` property Let's add two properties to our `AppComponent`, a `title` property for the application name and a `hero` property
for a hero named "Windstorm". for a hero named "Windstorm".
让我们给`AppComponent`添加两个属性:`title`属性表示应用的名字,而`hero`属性表示一个名叫“Windstorm”的英雄。 我们来为`AppComponent`添加两个属性:`title`属性表示应用的名字,而`hero`属性表示一个名叫“Windstorm”的英雄。
+makeExample('toh-1/ts-snippets/app.component.snippets.pt1.ts', 'app-component-1', 'app.component.ts (AppComponent类)')(format=".") +makeExample('toh-1/ts-snippets/app.component.snippets.pt1.ts', 'app-component-1', 'app.component.ts (AppComponent类)')(format=".")
@ -84,7 +84,7 @@ code-example(format="" language="bash").
The double curly braces tell our app to read the `title` and `hero` properties from the component and render them. The double curly braces tell our app to read the `title` and `hero` properties from the component and render them.
This is the "interpolation" form of one-way data binding. This is the "interpolation" form of one-way data binding.
这里的“双大括号”会告诉应用:从组件中读取`title`和`hero`属性,并且渲染它们。这就是单向数据绑定的“插值表达式”式。 这里的“双大括号”会告诉应用:从组件中读取`title`和`hero`属性,并且渲染它们。这就是单向数据绑定的“插值表达式”式。
.l-sub-section .l-sub-section
:marked :marked

@ -111,7 +111,7 @@ code-example(format="." language="bash").
The `SpecialSuperHeroService` would be defined in the `special-super-hero.service.ts` file. The `SpecialSuperHeroService` would be defined in the `special-super-hero.service.ts` file.
我们遵循的文件命名约定是:服务名称的小写形式(基本名),加上`.service`后缀。 我们遵循的文件命名约定是:服务名称的小写形式(基本名),加上`.service`后缀。
如果服务名称包含多个字母,我们把基本名部分拼成中线格式dash-case也被称作烤串格式kebab-case 如果服务名称包含多个字母,我们把基本名部分拼成中线形式dash-case也被称作烤串形式kebab-case
于是,`SpecialSuperHeroService`服务应该被定义在`special-super-hero.service.ts`文件中。 于是,`SpecialSuperHeroService`服务应该被定义在`special-super-hero.service.ts`文件中。
:marked :marked
We name the class `HeroService` and export it for others to import. We name the class `HeroService` and export it for others to import.