removed js/dart languages from dropdown list.

review for displaying-data.jade and index.jade.
This commit is contained in:
Zhimin(Rex) YE 2016-05-26 22:52:50 +01:00
parent 5031e6fe94
commit 70f534cc2a
3 changed files with 7 additions and 7 deletions

View File

@ -71,5 +71,5 @@ nav.dropdown
<!-- DROPDOWN MENU --> <!-- DROPDOWN MENU -->
div(class="dropdown-menu" ng-class="appCtrl.showMenu ? 'is-visible' : ''") 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.ts, "/docs/ts", "Angular 2 for TypeScript")
mixin tree(public.docs.js, "/docs/js", "Angular 2 for JavaScript") //- 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.dart, "/docs/dart", "Angular 2 for Dart")

View File

@ -127,7 +127,7 @@ include ../_quickstart_repo
inside the `<my-app>` tag. inside the `<my-app>` tag.
当我们通过`main.ts`中的`AppComponent`类启动时Angular在`index.html`中查找一个`<my-app>`元素, 当我们通过`main.ts`中的`AppComponent`类启动时Angular在`index.html`中查找一个`<my-app>`元素,
然后实例化一个`AppComponent`,并将其渲染`<my-app>`标签中。 然后实例化一个`AppComponent`,并将其渲染`<my-app>`标签中。
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.
@ -157,7 +157,7 @@ figure.image-display
the component metadata using the `@Component` decorator's `templateUrl` property. the component metadata using the `@Component` decorator's `templateUrl` property.
我们有两种地方可用来存放组件模板。 我们有两种地方可用来存放组件模板。
我们可以使用`template`属性把它定义为 *内联Inline* 的,就像这里所做的一样。 我们可以使用`template`属性把它定义为 *内联(Inline)* 的,就像这里所做的一样。
或者可以把模板定义在一个独立的HTML文件中并且在组件元数据`@Component`装饰器中的`templateUrl`属性链接到它。 或者可以把模板定义在一个独立的HTML文件中并且在组件元数据`@Component`装饰器中的`templateUrl`属性链接到它。
The choice between inline and separate HTML is a matter of taste, The choice between inline and separate HTML is a matter of taste,
@ -174,13 +174,13 @@ figure.image-display
## Constructor or variable initialization? ## Constructor or variable initialization?
## 用构造函数进行初始化还是用变量? ## 初始化:构造函数还是变量?
We initialized our component properties using variable assignment. We initialized our component properties using variable assignment.
This is a wonderfully concise and compact technique. This is a wonderfully concise and compact technique.
这里我们使用了变量赋值的方式初始化组件的属性。 这里我们使用了变量赋值的方式初始化组件的属性。
在技术上更加简洁 是个特别简洁用法
Some folks prefer to declare the properties and initialize them within a constructor like this: Some folks prefer to declare the properties and initialize them within a constructor like this:

View File

@ -14,7 +14,7 @@ figure
We are on a journey together to understand how Angular works and, more importantly, 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. how to make it work for us. This overview begins the journey.
在这次旅程中我们将一起理解Angular是如何工作的更重要的是如何让它为我们工作。本概览就是这次旅程的起点。 在这次旅程中我们将一起理解Angular是如何工作的更重要的是:如何让它为我们工作。本概览就是这次旅程的起点。
<br clear="all"> <br clear="all">
// #enddocregion intro // #enddocregion intro