diff --git a/public/_includes/_version-dropdown.jade b/public/_includes/_version-dropdown.jade index 0525aa4fee..ed798dde7c 100644 --- a/public/_includes/_version-dropdown.jade +++ b/public/_includes/_version-dropdown.jade @@ -71,5 +71,5 @@ nav.dropdown div(class="dropdown-menu" ng-class="appCtrl.showMenu ? 'is-visible' : ''") mixin tree(public.docs.ts, "/docs/ts", "Angular 2 for TypeScript") - mixin tree(public.docs.js, "/docs/js", "Angular 2 for JavaScript") - mixin tree(public.docs.dart, "/docs/dart", "Angular 2 for Dart") + //- mixin tree(public.docs.js, "/docs/js", "Angular 2 for JavaScript") + //- mixin tree(public.docs.dart, "/docs/dart", "Angular 2 for Dart") diff --git a/public/docs/ts/latest/guide/displaying-data.jade b/public/docs/ts/latest/guide/displaying-data.jade index 765c524ee1..f9ebe13ce5 100644 --- a/public/docs/ts/latest/guide/displaying-data.jade +++ b/public/docs/ts/latest/guide/displaying-data.jade @@ -127,7 +127,7 @@ include ../_quickstart_repo inside the `` tag. 当我们通过`main.ts`中的`AppComponent`类启动时,Angular在`index.html`中查找一个``元素, - 然后实例化一个`AppComponent`,并将其渲染进``标签中。 + 然后实例化一个`AppComponent`,并将其渲染到``标签中。 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. @@ -157,7 +157,7 @@ figure.image-display the component metadata using the `@Component` decorator's `templateUrl` property. 我们有两种地方可用来存放组件模板。 - 我们可以使用`template`属性把它定义为 *内联Inline* 的,就像这里所做的一样。 + 我们可以使用`template`属性把它定义为 *内联(Inline)* 的,就像这里所做的一样。 或者,可以把模板定义在一个独立的HTML文件中,并且在组件元数据`@Component`装饰器中的`templateUrl`属性链接到它。 The choice between inline and separate HTML is a matter of taste, @@ -174,13 +174,13 @@ figure.image-display ## Constructor or variable initialization? - ## 用构造函数进行初始化还是用变量? + ## 初始化:构造函数还是变量? We initialized our component properties using variable assignment. This is a wonderfully concise and compact technique. 这里我们使用了变量赋值的方式初始化组件的属性。 - 这在技术上更加简洁。 + 这是个特别简洁用法。 Some folks prefer to declare the properties and initialize them within a constructor like this: diff --git a/public/docs/ts/latest/guide/index.jade b/public/docs/ts/latest/guide/index.jade index 8c644cb2bf..1b0f18a63b 100644 --- a/public/docs/ts/latest/guide/index.jade +++ b/public/docs/ts/latest/guide/index.jade @@ -14,7 +14,7 @@ figure We are on a journey together to understand how Angular works and, more importantly, how to make it work for us. This overview begins the journey. - 在这次旅程中,我们将一起理解Angular是如何工作的,更重要的是,如何让它为我们工作。本概览就是这次旅程的起点。 + 在这次旅程中,我们将一起理解Angular是如何工作的,更重要的是:如何让它为我们工作。本概览就是这次旅程的起点。
// #enddocregion intro