diff --git a/public/docs/ts/latest/cookbook/aot-compiler.jade b/public/docs/ts/latest/cookbook/aot-compiler.jade
index 50c19c3dba..2213e3ba80 100644
--- a/public/docs/ts/latest/cookbook/aot-compiler.jade
+++ b/public/docs/ts/latest/cookbook/aot-compiler.jade
@@ -561,7 +561,7 @@ a#toh
***index.html***
- ***Index.html***
+ ***index.html***
The JiT and AoT apps require their own `index.html` files because they setup and launch so differently.
**Put the AoT version in the `/aot` folder** because two `index.html` files can't be in the same folder.
@@ -570,6 +570,7 @@ a#toh
**将AoT版本放在`/aot`目录**,因为两个`index.html`文件不能位于同一个目录。
Here they are for comparison:
+
下面是它们的比较:
+makeTabs(
@@ -594,6 +595,8 @@ a#toh
***main.ts***
+ ***main.ts***
+
JiT and AoT applications boot in much the same way but require different Angular libraries to do so.
The key differences, covered in the [Bootstrap](#bootstrap) section above,
are evident in these `main` files which can and should reside in the same folder:
@@ -612,6 +615,7 @@ a#toh
:marked
***Component-relative Template URLS***
+
***相对组件的模板路径***
The AoT compiler requires that `@Component` URLS for external templates and css files be _component-relative_.
@@ -640,6 +644,7 @@ a#toh
设置一个全局`module`是暂时的权宜之计。
:marked
***TypeScript configuration***
+
***TypeScript配置***
JiT-compiled applications transpile to `commonjs` modules.
diff --git a/public/docs/ts/latest/guide/architecture.jade b/public/docs/ts/latest/guide/architecture.jade
index d5f81b111a..2dea4e1a2c 100644
--- a/public/docs/ts/latest/guide/architecture.jade
+++ b/public/docs/ts/latest/guide/architecture.jade
@@ -433,7 +433,7 @@ block ts-decorator
The `@Component` decorator takes a required configuration object with the
information Angular needs to create and present the component and its view.
- `@Component`!{_decoratorCn}能接受一个配置对象,Angular会基于这些信息创建和展示组件及其视图。
+ `@Component`!{_decoratorCn}能接受一个配置对象,Angular会基于这些信息创建和展示组件及其视图。
Here are a few of the possible `@Component` configuration options:
@@ -482,11 +482,6 @@ figure
比如`@Injectable`、`@Input`和`@Output`等是一些最常用的!{_decoratorCn}。
-
- 我们也会沿用类似的风格,用其它元数据!{_decoratorCn}来指导Angular的行为。
- 比如`@Injectable`、`@Input`和`@Output`等是一些最常用的!{_decoratorCn}。
-
-
:marked
The architectural takeaway is that you must add metadata to your code
so that Angular knows what to do.
@@ -996,7 +991,7 @@ code-example().
> [**Router**](router.html): Navigate from page to page within the client
application and never leave the browser.
- > [**路由器**](router.html):在应用程序客户端导航,并且不离开浏览器。
+ > [**路由器**](router.html):在应用程序客户端导航,并且不离开浏览器。
> [**Testing**](testing.html): Run unit tests on your application parts as they interact with the Angular framework
using the _Angular Testing Platform_.
diff --git a/public/docs/ts/latest/guide/browser-support.jade b/public/docs/ts/latest/guide/browser-support.jade
index ed7afed1fd..cf9a56d752 100644
--- a/public/docs/ts/latest/guide/browser-support.jade
+++ b/public/docs/ts/latest/guide/browser-support.jade
@@ -248,19 +248,13 @@ table
td MIT / Unicode licence
td 13.5KB
tr
- td
- p.
- a(href="https://github.com/web-animations/web-animations-js" target="_blank") Web Animations
- p.
- a#web-animations(href="https://github.com/web-animations/web-animations-js" target="_blank") Web Animations
+ td
+ a#web-animations(href="https://github.com/web-animations/web-animations-js" target="_blank") Web Animations
td Apache
td 14.8KB
tr
td
- p.
- a(href="https://github.com/inexorabletash/polyfill/blob/master/typedarray.js" target="_blank") Typed Array
- p.
- a#typedarray(href="https://github.com/inexorabletash/polyfill/blob/master/typedarray.js" target="_blank") Typed Array
+ a#typedarray(href="https://github.com/inexorabletash/polyfill/blob/master/typedarray.js" target="_blank") Typed Array
td MIT
td 4KB
tr
diff --git a/public/docs/ts/latest/guide/forms.jade b/public/docs/ts/latest/guide/forms.jade
index c808c630db..67054a4df9 100644
--- a/public/docs/ts/latest/guide/forms.jade
+++ b/public/docs/ts/latest/guide/forms.jade
@@ -42,8 +42,6 @@ include ../_util-fns
- 结合表单来使用`ngModel`,能让我们跟踪状态的变化并对表单控件做验证
- - 结合表单来使用`ngModel`,能让我们跟踪状态的变化并对表单控件做验证
-
- provide strong visual feedback using special CSS classes that track the state of the controls
- 使用特殊的CSS类来跟踪控件状态,并提供强烈的视觉反馈
diff --git a/public/docs/ts/latest/guide/index.jade b/public/docs/ts/latest/guide/index.jade
index cd5b335130..2efbd5c6a2 100644
--- a/public/docs/ts/latest/guide/index.jade
+++ b/public/docs/ts/latest/guide/index.jade
@@ -155,11 +155,13 @@ table(width="100%")
Look for a link to a running version of that sample near the top of each page,
such as this
The link launches a browser-based code editor where you can inspect, modify, save, and download the code.
- 在每页靠近顶部的地方都可以看到一个链接,指向这个范例的可执行版本,比如[架构](architecture.html)一章中的这个链接启动一个基于浏览器的代码编辑器,在这里,我们可以查看、修改、保存和下载这些代码。
diff --git a/public/docs/ts/latest/guide/router.jade b/public/docs/ts/latest/guide/router.jade index 8a3071d54d..820bb56341 100644 --- a/public/docs/ts/latest/guide/router.jade +++ b/public/docs/ts/latest/guide/router.jade @@ -423,7 +423,7 @@ table td pRouter
p Router
(路由器)
- td.
+ td
p.
Displays the application component for the active URL.
Manages navigation from one component to the next.
@@ -2295,7 +2295,11 @@ h3#merge-hero-routes 把hero模块导入到AppModule中
When the user selects a crisis, the app navigates to the `CrisisDetailComponent`
for display and editing of the crisis name.
- Voilà, another feature module!
+ `Crisis`有`id`和`name`,和`Hero`一样。
+ 新的`CrisisListComponent`显示了危机列表。
+ 当用户选择一个危机时,应用导航到`CrisisDetailComponent`,显示和编辑危机名字。
+
+ Voila, another feature module!
真棒!另一个特性模块诞生了
diff --git a/public/docs/ts/latest/guide/style-guide.jade b/public/docs/ts/latest/guide/style-guide.jade
index bc9f8aa9c7..eb010411ea 100644
--- a/public/docs/ts/latest/guide/style-guide.jade
+++ b/public/docs/ts/latest/guide/style-guide.jade
@@ -3006,8 +3006,9 @@ a(href="#toc") 回到顶部