fix: 统一了 JIT 和 AOT 的写法

This commit is contained in:
Zhicheng Wang 2018-03-21 16:23:00 +08:00
parent b54ce4847d
commit 83e7817ff2
4 changed files with 13 additions and 13 deletions

View File

@ -232,7 +232,7 @@ Docs and code samples updated and tested with Angular v.2.2.0.
## UPDATE: NgUpgrade Guide for the AOT friendly _upgrade/static_ module (2016-11-14) ## UPDATE: NgUpgrade Guide for the AOT friendly _upgrade/static_ module (2016-11-14)
## 更新:用于 AoT 的_upgrade/static_模块 NgUpgrade 指南 (2016-11-14) ## 更新:用于 AOT 的_upgrade/static_模块 NgUpgrade 指南 (2016-11-14)
The updated [NgUpgrade Guide](guide/upgrade) guide covers the The updated [NgUpgrade Guide](guide/upgrade) guide covers the
new AOT friendly `upgrade/static` module new AOT friendly `upgrade/static` module
@ -240,7 +240,7 @@ released in v.2.2.0, which is the recommended
facility for migrating from AngularJS to Angular. facility for migrating from AngularJS to Angular.
The documentation for the version prior to v.2.2.0 has been removed. The documentation for the version prior to v.2.2.0 has been removed.
更新的[NgUpgrade 指南](guide/upgrade)涵盖在 v.2.2.0 发布的 AoT`upgrade/static` 模块, 更新的[NgUpgrade 指南](guide/upgrade)涵盖在 v.2.2.0 发布的 AOT`upgrade/static` 模块,
是从 AngularJS 升级至 Angular 的推荐工具。 是从 AngularJS 升级至 Angular 的推荐工具。
删除早于 v.2.2.0 版本的文档。 删除早于 v.2.2.0 版本的文档。
@ -332,14 +332,14 @@ Docs and code samples updated and tested with Angular v.2.1.0.
## NEW "Ahead of time (AOT) Compilation" guide (2016-10-11) ## NEW "Ahead of time (AOT) Compilation" guide (2016-10-11)
## 添加了新的“预编译(AoT)"烹饪书(2016-10-11) ## 添加了新的“预编译(AOT)"烹饪书(2016-10-11)
The NEW [Ahead of time (AOT) Compilation](guide/aot-compiler) guide The NEW [Ahead of time (AOT) Compilation](guide/aot-compiler) guide
explains what AOT compilation is and why you'd want it. explains what AOT compilation is and why you'd want it.
It demonstrates the basics with a QuickStart app It demonstrates the basics with a QuickStart app
followed by the more advanced considerations of compiling and bundling the Tour of Heroes. followed by the more advanced considerations of compiling and bundling the Tour of Heroes.
全新[预编译(AoT)](guide/aot-compiler)烹饪书介绍了什么是 AoT 编译和为何你需要它。 全新[预编译(AOT)](guide/aot-compiler)烹饪书介绍了什么是 AOT 编译和为何你需要它。
它以**快速上手**应用程序开始讲解,接着介绍了编译和构建**英雄指南**的更高级的注意事项。 它以**快速上手**应用程序开始讲解,接着介绍了编译和构建**英雄指南**的更高级的注意事项。
## Sync with Angular v.2.0.2 (2016-10-6) ## Sync with Angular v.2.0.2 (2016-10-6)
@ -422,7 +422,7 @@ Added the `moduleId: module.id` property-and-value to their `@Component` metadat
This change is a requirement for compilation with AOT compiler when the app loads This change is a requirement for compilation with AOT compiler when the app loads
modules with SystemJS as the samples currently do. modules with SystemJS as the samples currently do.
当应用像例子当前使用的方法一样 - 使用 SystemJS 加载模块时,本更新是 AoT 编译器的前提条件。 当应用像例子当前使用的方法一样 - 使用 SystemJS 加载模块时,本更新是 AOT 编译器的前提条件。
## "Lifecycle Hooks" guide simplified (2016-09-24) ## "Lifecycle Hooks" guide simplified (2016-09-24)

View File

@ -25,7 +25,7 @@ unexpected definitions.
## Ahead-of-time (AOT) compilation ## Ahead-of-time (AOT) compilation
## 预 (ahead-of-time, AoT) 编译 ## 预 (ahead-of-time, AOT) 编译
You can compile Angular applications at build time. You can compile Angular applications at build time.
By compiling your application using the compiler-cli, `ngc`, you can bootstrap directly to a module factory, meaning you don't need to include the Angular compiler in your JavaScript bundle. By compiling your application using the compiler-cli, `ngc`, you can bootstrap directly to a module factory, meaning you don't need to include the Angular compiler in your JavaScript bundle.
@ -627,7 +627,7 @@ Read more about [interpolation](guide/template-syntax#interpolation) in the
## Just-in-time (JIT) compilation ## Just-in-time (JIT) compilation
## 即时 (just-in-time, JiT) 编译 ## 即时 (just-in-time, JIT) 编译
A bootstrapping method of compiling components and modules in the browser A bootstrapping method of compiling components and modules in the browser
and launching the application dynamically. Just-in-time mode is a good choice during development. and launching the application dynamically. Just-in-time mode is a good choice during development.

View File

@ -1154,13 +1154,13 @@ guide:
### Merge with the JIT compiler ### Merge with the JIT compiler
### 用 JiT 编译器合并 ### 用 JIT 编译器合并
The JIT compiler compiles the app in the browser as the app loads. The JIT compiler compiles the app in the browser as the app loads.
Translation with the JIT compiler is a dynamic process of: Translation with the JIT compiler is a dynamic process of:
JiT即时编译器在应用程序加载时在浏览器中编译应用。 JIT即时编译器在应用程序加载时在浏览器中编译应用。
在使用 JiT 编译器的环境中翻译是一个动态的流程,包括: 在使用 JIT 编译器的环境中翻译是一个动态的流程,包括:
1. Importing the appropriate language translation file as a string constant. 1. Importing the appropriate language translation file as a string constant.
@ -1168,7 +1168,7 @@ JiT即时编译器在应用程序加载时在浏览器中编译应用
2. Creating corresponding translation providers for the JIT compiler. 2. Creating corresponding translation providers for the JIT compiler.
为 JiT 编译器创建相应的翻译提供商。 为 JIT 编译器创建相应的翻译提供商。
3. Bootstrapping the app with those providers. 3. Bootstrapping the app with those providers.
@ -1177,7 +1177,7 @@ JiT即时编译器在应用程序加载时在浏览器中编译应用
Three providers tell the JIT compiler how to translate the template texts for a particular language Three providers tell the JIT compiler how to translate the template texts for a particular language
while compiling the app: while compiling the app:
三种提供商帮助 JiT 编译在编译应用时,将模板文本翻译到某种语言: 三种提供商帮助 JIT 编译在编译应用时,将模板文本翻译到某种语言:
* `TRANSLATIONS` is a string containing the content of the translation file. * `TRANSLATIONS` is a string containing the content of the translation file.

View File

@ -314,7 +314,7 @@ The following are all in `src/`
it's the only viable choice for a sample running in a _live-coding_ environment like Stackblitz. it's the only viable choice for a sample running in a _live-coding_ environment like Stackblitz.
You'll learn about alternative compiling and [deployment](guide/deployment) options later in the documentation. You'll learn about alternative compiling and [deployment](guide/deployment) options later in the documentation.
使[即时 (JiT) 编译器](guide/glossary#jit)用编译应用并且在浏览器中[启动](guide/bootstrapping "启动应用")并运行应用。 使[即时 (JIT) 编译器](guide/glossary#jit)用编译应用并且在浏览器中[启动](guide/bootstrapping "启动应用")并运行应用。
对于大多数项目的开发,这都是合理的选择。而且它是在像 Stackblitz 这样的*在线编程*环境中运行例子的唯一选择。 对于大多数项目的开发,这都是合理的选择。而且它是在像 Stackblitz 这样的*在线编程*环境中运行例子的唯一选择。
你将在本文档中学习其他编译和开发选择。 你将在本文档中学习其他编译和开发选择。