内容微调
This commit is contained in:
parent
632d15710c
commit
9a2dfde114
|
@ -122,8 +122,8 @@
|
||||||
},
|
},
|
||||||
|
|
||||||
"deployment": {
|
"deployment": {
|
||||||
"title": "Deployment",
|
"title": "部署",
|
||||||
"intro": "Learn how to deploy your Angular app."
|
"intro": "如何部署Angular应用。"
|
||||||
},
|
},
|
||||||
|
|
||||||
"hierarchical-dependency-injection": {
|
"hierarchical-dependency-injection": {
|
||||||
|
@ -133,8 +133,8 @@
|
||||||
},
|
},
|
||||||
|
|
||||||
"reactive-forms": {
|
"reactive-forms": {
|
||||||
"title": "Reactive Forms",
|
"title": "响应式表单",
|
||||||
"intro": "Create a reactive form using FormBuilder, groups, and arrays."
|
"intro": "使用FormBuilder、组合数组创建响应式表单。"
|
||||||
},
|
},
|
||||||
|
|
||||||
"server-communication": {
|
"server-communication": {
|
||||||
|
|
|
@ -5,8 +5,8 @@ block includes
|
||||||
Angular is a framework for building client applications in HTML and
|
Angular is a framework for building client applications in HTML and
|
||||||
either JavaScript or a language like TypeScript that compiles to JavaScript.
|
either JavaScript or a language like TypeScript that compiles to JavaScript.
|
||||||
|
|
||||||
Angular 是一个用 HTML 和 JavaScript 或者一个可以编译成 JavaScript 的语言(例如 Dart 或者 TypeScript ),来构建客户端应用的框架。The framework consists of several libraries, some of them core and some optional.
|
Angular 是一个用 HTML 和 JavaScript 或者一个可以编译成 JavaScript 的语言(例如 Dart 或者 TypeScript ),来构建客户端应用的框架。
|
||||||
|
|
||||||
The framework consists of several libraries, some of them core and some optional.
|
The framework consists of several libraries, some of them core and some optional.
|
||||||
|
|
||||||
该框架包括一系列库,有些是核心库,有些是可选库。
|
该框架包括一系列库,有些是核心库,有些是可选库。
|
||||||
|
@ -74,7 +74,7 @@ figure
|
||||||
|
|
||||||
Learn these building blocks, and you're on your way.
|
Learn these building blocks, and you're on your way.
|
||||||
|
|
||||||
掌握了这些构造块,你就可以下山了!
|
掌握了这些构造块,你就可以出师了!
|
||||||
|
|
||||||
.l-sub-section
|
.l-sub-section
|
||||||
p The code referenced on this page is available as a <live-example></live-example>.
|
p The code referenced on this page is available as a <live-example></live-example>.
|
||||||
|
@ -266,7 +266,7 @@ figure
|
||||||
It's easy to confuse the two systems because they share the common vocabulary of "imports" and "exports".
|
It's easy to confuse the two systems because they share the common vocabulary of "imports" and "exports".
|
||||||
Hang in there. The confusion yields to clarity with time and experience.
|
Hang in there. The confusion yields to clarity with time and experience.
|
||||||
|
|
||||||
这两个系统比较容易混淆,因为它们共享相同的词汇 “imports” 和 “exports”。先放一放,随着时间和经验的增长,自然就会清楚了。
|
这两个系统比较容易混淆,因为它们共享相同的词汇 “imports” 和 “exports”。不过没关系,先放一放,随着时间和经验的增长,自然就清楚了。
|
||||||
|
|
||||||
.l-sub-section
|
.l-sub-section
|
||||||
:marked
|
:marked
|
||||||
|
@ -985,8 +985,8 @@ figure
|
||||||
> [**路由器**](router.html):在应用程序客户端的页面间导航,并且不离开浏览器。
|
> [**路由器**](router.html):在应用程序客户端的页面间导航,并且不离开浏览器。
|
||||||
|
|
||||||
|
|
||||||
:marked
|
:marked
|
||||||
> [**Testing**](testing.html): Run unit tests on your application parts as they interact with the Angular framework
|
> [**Testing**](testing.html): Run unit tests on your application parts as they interact with the Angular framework
|
||||||
using the _Angular Testing Platform_.
|
using the _Angular Testing Platform_.
|
||||||
|
|
||||||
> [**测试**](testing.html):使用 _Angular 测试平台_,在你的应用部件与 Angular 框架交互时进行单元测试。
|
> [**测试**](testing.html):使用 _Angular 测试平台_,在你的应用部件与 Angular 框架交互时进行单元测试。
|
||||||
|
|
|
@ -11,7 +11,7 @@ figure
|
||||||
|
|
||||||
每个人的学习方式不一样。
|
每个人的学习方式不一样。
|
||||||
你不一定要通读文档。本站大部分页面都是独立的。
|
你不一定要通读文档。本站大部分页面都是独立的。
|
||||||
Angular 初学者可能希望跟随下面流行的学习路径。
|
Angular 初学者可能希望跟随下面的常见学习路径。
|
||||||
|
|
||||||
<br class="l-clear-left">
|
<br class="l-clear-left">
|
||||||
|
|
||||||
|
|
|
@ -61,6 +61,8 @@ code-example(language="sh" class="code-shell").
|
||||||
.alert.is-important
|
.alert.is-important
|
||||||
:marked
|
:marked
|
||||||
`npm start` fails in _Bash for Windows_ which does not support networking to servers as of January, 2017.
|
`npm start` fails in _Bash for Windows_ which does not support networking to servers as of January, 2017.
|
||||||
|
|
||||||
|
在*Bash for Windows*中`npm start`可能会失败,因为到2017-01为止它还不支持访问网络上的服务器。
|
||||||
|
|
||||||
a#download
|
a#download
|
||||||
:marked
|
:marked
|
||||||
|
@ -83,6 +85,8 @@ code-example(language="sh" class="code-shell").
|
||||||
:marked
|
:marked
|
||||||
`npm start` fails in _Bash for Windows_ which does not support networking to servers as of January, 2017.
|
`npm start` fails in _Bash for Windows_ which does not support networking to servers as of January, 2017.
|
||||||
|
|
||||||
|
在*Bash for Windows*中`npm start`可能会失败,因为到2017-01为止它还不支持访问网络上的服务器。
|
||||||
|
|
||||||
a#non-essential
|
a#non-essential
|
||||||
.l-main-section
|
.l-main-section
|
||||||
:marked
|
:marked
|
||||||
|
@ -108,6 +112,7 @@ a#non-essential
|
||||||
在项目目录下打开一个终端窗口,并根据你的操作系统执行以下命令:
|
在项目目录下打开一个终端窗口,并根据你的操作系统执行以下命令:
|
||||||
|
|
||||||
### OS/X (bash)
|
### OS/X (bash)
|
||||||
|
|
||||||
code-example(language="sh" class="code-shell").
|
code-example(language="sh" class="code-shell").
|
||||||
xargs rm -rf < non-essential-files.osx.txt
|
xargs rm -rf < non-essential-files.osx.txt
|
||||||
rm src/app/*.spec*.ts
|
rm src/app/*.spec*.ts
|
||||||
|
@ -115,6 +120,7 @@ code-example(language="sh" class="code-shell").
|
||||||
|
|
||||||
:marked
|
:marked
|
||||||
### Windows
|
### Windows
|
||||||
|
|
||||||
code-example(language="sh" class="code-shell").
|
code-example(language="sh" class="code-shell").
|
||||||
for /f %i in (non-essential-files.txt) do del %i /F /S /Q
|
for /f %i in (non-essential-files.txt) do del %i /F /S /Q
|
||||||
rd .git /s /q
|
rd .git /s /q
|
||||||
|
|
Loading…
Reference in New Issue