diff --git a/public/docs/js/latest/cookbook/ts-to-js.jade b/public/docs/js/latest/cookbook/ts-to-js.jade
index c3057e560f..ea89f0194f 100644
--- a/public/docs/js/latest/cookbook/ts-to-js.jade
+++ b/public/docs/js/latest/cookbook/ts-to-js.jade
@@ -6,8 +6,8 @@ include ../../../../_includes/_util-fns
matter of changing the way we organize our code and the way we access
Angular 2 APIs.
- 所有能在Angular 2的TypeScript环境里面做的事情,我们都能在JavaScript里面实现。
- 从一个语言换成到另一个语言,最多只会影响源代码的管理方式和Angular 2 API的访问方法。
+ 在Angular 2中,所有能用TypeScript完成的事,也都能用JavaScript完成。
+ 从一个语言换成另一个语言,最多只会影响源代码的组织方式和访问Angular 2 API的方法。
Since TypeScript is a popular language option in Angular 2, many of the
code examples you see on the Internet as well as on this site are written
@@ -15,9 +15,8 @@ include ../../../../_includes/_util-fns
code examples to ES5, so that they can be applied to Angular 2 JavaScript
applications.
- 因为TypeScript是一个很受欢迎的Angular 2的语言选择,你在网络上和本站上看到的很多代码例子
- 都是以TypeScript编写的。本烹饪宝典包含如何把这些代码编译到ES5的食谱,这样它们可以被应用
- 到Angular 2的JavaScript应用程序里。
+ TypeScript是个广受欢迎的Angular 2语言选项,你在网络上和本站上看到的很多范例代码都是用TypeScript写的。
+ 本烹饪宝典包含如何把这些代码编译到ES5的菜谱,这样它们就可以被用到JavaScript版的Angular 2程序里了。
@@ -28,15 +27,15 @@ include ../../../../_includes/_util-fns
[Modularity: imports and exports](#modularity)
- [模块化:导入和导出](#modularity)
+ [模块化:导入与导出](#modularity)
[Classes and Class Metadata](#class-metadata)
- [类和类元数据](#class-metadata)
+ [类和“类的元数据”](#class-metadata)
[Input and Output Metadata](#property-metadata)
- [导入和导出元数据](#property-metadata)
+ [`Input`(输入)与`Output`(输出)元数据](#property-metadata)
[Dependency Injection](#dependency-injection)
@@ -44,19 +43,19 @@ include ../../../../_includes/_util-fns
[Host and Query Metadata](#other-property-metadata)
- [宿主和查询元素据](#other-property-metadata)
+ [`Host`(宿主)与`Query`(查询)元数据](#other-property-metadata)
**Run and compare the live [TypeScript](/resources/live-examples/cb-ts-to-js/ts/plnkr.html) and
[JavaScript](/resources/live-examples/cb-ts-to-js/js/plnkr.html) code shown in this cookbook.**
- **运行并比较本烹饪宝典里面的在线[TypeScript](/resources/live-examples/cb-ts-to-js/ts/plnkr.html)和[JavaScript](/resources/live-examples/cb-ts-to-js/js/plnkr.html)代码**
+ **运行并比较本烹饪宝典里的在线[TypeScript](/resources/live-examples/cb-ts-to-js/ts/plnkr.html)和[JavaScript](/resources/live-examples/cb-ts-to-js/js/plnkr.html)代码**
a(id="modularity")
.l-main-section
:marked
## Importing and Exporting
- ## 导入和导出
+ ## 导入与导出
- var top="vertical-align:top"
table(width="100%")
@@ -75,7 +74,7 @@ table(width="100%")
In TypeScript code, Angular 2 classes, functions, and other members
are imported with TypeScript `import` statements:
- 在TypeScript代码中,Angular 2是利用TypeScript的`import`声明来导入类、函数和其他成员的。
+ 在TypeScript代码中,Angular 2是利用TypeScript的`import`语句来导入类、函数和其他成员的。
+makeExample('cb-ts-to-js/ts/app/main.ts', 'ng2import')(format="." )
@@ -83,7 +82,7 @@ table(width="100%")
:marked
### Accessing Angular 2 Code through the ng global
- ### 通过全局ng来访问Angular 2代码
+ ### 通过全局变量`ng`来访问Angular 2代码
In JavaScript code, when using
[the Angular 2 packages](../glossary.html#!#scoped-package),
@@ -91,8 +90,8 @@ table(width="100%")
nested members of this object we'll find everything we would import
from `angular2` in TypeScript:
- 在JavaScript代码中,当使用[Angular 2库](../glossary.html#!#scoped-package)时,
- 我们可以通过全局的`ng`对象来访问Angular代码。在这个对象嵌套的很多成员中,我们能找到所有在TypeScript环境下能从`angular2`导入的对应物。
+ 在JavaScript中,当使用[Angular 2库](../glossary.html#!#scoped-package)时,
+ 我们可以通过全局的`ng`对象来访问Angular代码。在本对象内嵌的很多成员中,我们会发现TypeScript能从`@angular`库导入的所有对应物。
+makeExample('cb-ts-to-js/js/app/main.js', 'ng2import')(format="." )
@@ -101,13 +100,13 @@ table(width="100%")
:marked
### Importing and Exporting Application Code
- ### 导入和导出应用程序代码
+ ### 导入与导出应用程序代码
Each file in an Angular 2 TypeScript application constitutes a
TypeScript module. When we want to make something from a module available
to other modules, we `export` it.
- 在Angular 2 TypeScript应用里,每个文件组成一个TypeScript模块。当需要让一个模块在其他模块中可见时,我们`export`它。
+ 在TypeScript版的Angular 2程序里,每个文件都是一个TypeScript模块。当需要让一个模块在其它模块中可见时,我们要`export`它。
+makeExample('cb-ts-to-js/ts/app/hero.component.ts', 'appexport')(format="." )
@@ -115,7 +114,7 @@ table(width="100%")
In other modules we can then `import` things that have been exported
elsewhere.
- 然后,我们就可以在模块`import`其它地方导出的东西。
+ 然后,我们就可以在其它模块中`import`这些在别处导出的东西。
+makeExample('cb-ts-to-js/ts/app/main.ts', 'appimport')(format="." )
@@ -129,8 +128,8 @@ table(width="100%")
using a `