部分监听改为监视 —— 监听只适用于listen的翻译

This commit is contained in:
Zhicheng Wang 2016-05-11 19:30:44 +08:00
parent 520e75d200
commit bca76787bb
5 changed files with 10 additions and 10 deletions

View File

@ -105,7 +105,7 @@ figure.image-display
Use an input property setter to intercept and act upon a value from the parent. Use an input property setter to intercept and act upon a value from the parent.
使用一个Input属性setter在父级监听子级属性,并对属性值变化采取行动。 使用一个Input属性setter在父级拦截子级属性,并对属性值变化采取行动。
The setter of the `name` input property in the child `NameChildComponent` The setter of the `name` input property in the child `NameChildComponent`
trims the whitespace from a name and replaces an empty value with default text. trims the whitespace from a name and replaces an empty value with default text.
@ -152,7 +152,7 @@ figure.image-display
:marked :marked
May prefer this approach to the property setter when watching multiple, interacting input properties. May prefer this approach to the property setter when watching multiple, interacting input properties.
当监多个互动Input属性的时候本方法比属性setter更合适。 当监多个互动Input属性的时候本方法比属性setter更合适。
Learn about `ngOnChanges` in the [LifeCycle Hooks](../guide/lifecycle-hooks.html) chapter. Learn about `ngOnChanges` in the [LifeCycle Hooks](../guide/lifecycle-hooks.html) chapter.

View File

@ -118,7 +118,7 @@ include ../_quickstart_repo
We're ready to see changes in a running app by firing up the npm script that both compiles and serves our applications We're ready to see changes in a running app by firing up the npm script that both compiles and serves our applications
while watching for changes. while watching for changes.
通过运行npm脚本它能编译并启动一个能监变化的服务器),我们能看到运行中的应用发生的变化。 通过运行npm脚本它能编译并启动一个能监变化的服务器),我们能看到运行中的应用发生的变化。
code-example(format=""). code-example(format="").
npm start npm start
:marked :marked

View File

@ -948,7 +948,7 @@ figure.image-display
control* is valid. control* is valid.
`NgForm`指令使用额外的特性扩充了`form`元素。 `NgForm`指令使用额外的特性扩充了`form`元素。
它保存我们通过`ngControl`属性为各个元素创建的控件类,并且监它们的属性变化,包括有效性。 它保存我们通过`ngControl`属性为各个元素创建的控件类,并且监它们的属性变化,包括有效性。
它还有自己的`valid`属性,只有当 *每一个被包含的控件* 都有效时,它才有效。 它还有自己的`valid`属性,只有当 *每一个被包含的控件* 都有效时,它才有效。
:marked :marked

View File

@ -192,7 +192,7 @@ a(id="package-json")
* `npm start` - run the compiler and a server at the same time, both in "watch mode" * `npm start` - run the compiler and a server at the same time, both in "watch mode"
* `npm start` - 同时运行编译器和一个服务器,并且都开启"监模式" * `npm start` - 同时运行编译器和一个服务器,并且都开启"监模式"
* `npm run tsc` - run the TypeScript compiler once * `npm run tsc` - run the TypeScript compiler once
@ -201,7 +201,7 @@ a(id="package-json")
* `npm run tsc:w` - run the TypeScript compiler in watch mode; * `npm run tsc:w` - run the TypeScript compiler in watch mode;
the process keeps running, awaiting changes to TypeScript files and re-compiling when it sees them. the process keeps running, awaiting changes to TypeScript files and re-compiling when it sees them.
* `npm run tsc:w` - 在监模式运行TypeScript编译器 * `npm run tsc:w` - 在监模式运行TypeScript编译器
进程持续运行并等待TypeScript文件发生变化一旦变化就重新编译它。 进程持续运行并等待TypeScript文件发生变化一旦变化就重新编译它。
* `npm run lite` - run the <a href="https://www.npmjs.com/package/lite-server" target="_blank">lite-server</a>, * `npm run lite` - run the <a href="https://www.npmjs.com/package/lite-server" target="_blank">lite-server</a>,
@ -578,7 +578,7 @@ code-example(format="").
when working with observables. when working with observables.
We added the library here in QuickStart so we don't forget later.//TODO this subsection needs to be moved for when we cover the systemjs.config.js We added the library here in QuickStart so we don't forget later.//TODO this subsection needs to be moved for when we cover the systemjs.config.js
我们的QuickStart不会用到响应式扩展但是大量的应用需要它们来提供Observable译注响应式编程的核心特性指监数据的变更以便做出响应)特性。 我们的QuickStart不会用到响应式扩展但是大量的应用需要它们来提供Observable译注响应式编程的核心特性指监数据的变更以便做出响应)特性。
我们把它加到QuickStart中以免将来忘了。//TODO 当我们覆盖到systemjs.config.js时我们得把这些内容移过去。 我们把它加到QuickStart中以免将来忘了。//TODO 当我们覆盖到systemjs.config.js时我们得把这些内容移过去。
:marked :marked
@ -760,7 +760,7 @@ figure.image-display
They should detect the change, recompile the TypeScript into JavaScript, They should detect the change, recompile the TypeScript into JavaScript,
refresh the browser, and display the revised message. refresh the browser, and display the revised message.
TypeScript编译器和`lite-server`都在监 TypeScript编译器和`lite-server`都在监
它们会检测到文件的变化重新把这个TypeScript文件编译成JavaScript文件刷新浏览器并且显示修改过的消息。 它们会检测到文件的变化重新把这个TypeScript文件编译成JavaScript文件刷新浏览器并且显示修改过的消息。
It's a nifty way to develop an application! It's a nifty way to develop an application!

View File

@ -6,7 +6,7 @@ include ../_util-fns
Every story starts somewhere. Our story starts where the [QuickStart](../quickstart.html) ends. Every story starts somewhere. Our story starts where the [QuickStart](../quickstart.html) ends.
每个故事,都有一个起点。而我们的故事则开始于[QuickStart](../quickstart.html)的结尾处。 个故事,都有一个起点。而我们的故事则开始于[QuickStart](../quickstart.html)的结尾处。
[Run the live example for part 1](/resources/live-examples/toh-1/ts/plnkr.html) [Run the live example for part 1](/resources/live-examples/toh-1/ts/plnkr.html)
@ -15,7 +15,7 @@ include ../_util-fns
Create a folder called `angular2-tour-of-heroes` and follow the [QuickStart](../quickstart.html) steps Create a folder called `angular2-tour-of-heroes` and follow the [QuickStart](../quickstart.html) steps
which provide the prerequisites, the folder structure, and the core files for our Tour of Heroes. which provide the prerequisites, the folder structure, and the core files for our Tour of Heroes.
创建一个名为`angular2-tour-of-heroes`的文件夹,并且遵循[QuickStart](../quickstart.html)中的步骤初始化它 —— 环境准备、目录结构,以及我们《英雄指南》的核心文件。 创建一个名为`angular2-tour-of-heroes`的文件夹,并且遵循[QuickStart](../quickstart.html)中的步骤初始化它 —— 环境准备、目录结构,并放进我们《英雄指南》的核心文件。
include ../_quickstart_repo include ../_quickstart_repo
:marked :marked