文字微调
食谱批量替换为菜谱
This commit is contained in:
parent
1edea2de82
commit
2368b8f4c3
@ -8,11 +8,11 @@
|
|||||||
"a1-a2-quick-reference": {
|
"a1-a2-quick-reference": {
|
||||||
"title": "Angular从1到2快速参考",
|
"title": "Angular从1到2快速参考",
|
||||||
"navTitle": "Angular从1到2快速参考",
|
"navTitle": "Angular从1到2快速参考",
|
||||||
"intro": "学习如何把Angular 1的概念和技术对应到Angular 2"
|
"intro": "学习如何把Angular 1中的概念和技术对应到Angular 2中"
|
||||||
},
|
},
|
||||||
|
|
||||||
"component-communication": {
|
"component-communication": {
|
||||||
"title": "组件交互",
|
"title": "组件通讯",
|
||||||
"intro": "在不同的指令和组件之间共享信息"
|
"intro": "在不同的指令和组件之间共享信息"
|
||||||
},
|
},
|
||||||
"dependency-injection": {
|
"dependency-injection": {
|
||||||
|
@ -5,7 +5,7 @@ include ../_util-fns
|
|||||||
This cookbook contains recipes for common component communication scenarios
|
This cookbook contains recipes for common component communication scenarios
|
||||||
in which two or more components share information.
|
in which two or more components share information.
|
||||||
|
|
||||||
本食谱包含了常见的组件之间的交互方法,也就是两个或多个组件之间共享信息的方法。
|
本菜谱包含了常见的组件之间的交互方法,也就是两个或多个组件之间共享信息的方法。
|
||||||
//
|
//
|
||||||
.l-sub-section
|
.l-sub-section
|
||||||
:marked
|
:marked
|
||||||
|
@ -4,7 +4,7 @@ include ../_util-fns
|
|||||||
Dependency Injection is a powerful pattern for managing code dependencies.
|
Dependency Injection is a powerful pattern for managing code dependencies.
|
||||||
In this cookbook we will explore many of the features of Dependency Injection (DI) in Angular.
|
In this cookbook we will explore many of the features of Dependency Injection (DI) in Angular.
|
||||||
|
|
||||||
依赖注入是一个强大的管理代码依赖链的架构模式。在这个“食谱”中,我们会讨论Angular依赖注入的许多特性。
|
依赖注入是一个强大的管理代码依赖链的架构模式。在这个“菜谱”中,我们会讨论Angular依赖注入的许多特性。
|
||||||
|
|
||||||
<a id="toc"></a>
|
<a id="toc"></a>
|
||||||
:marked
|
:marked
|
||||||
@ -112,7 +112,7 @@ include ../_util-fns
|
|||||||
**See the [live example](/resources/live-examples/cb-dependency-injection/ts/plnkr.html)**
|
**See the [live example](/resources/live-examples/cb-dependency-injection/ts/plnkr.html)**
|
||||||
of the code supporting this cookbook.
|
of the code supporting this cookbook.
|
||||||
|
|
||||||
获取本“食谱”的代码支持,**参见[在线例子](/resources/live-examples/cb-dependency-injection/ts/plnkr.html)**。
|
获取本“菜谱”的代码支持,**参见[在线例子](/resources/live-examples/cb-dependency-injection/ts/plnkr.html)**。
|
||||||
|
|
||||||
.l-main-section
|
.l-main-section
|
||||||
|
|
||||||
|
@ -14,7 +14,7 @@ include ../_util-fns
|
|||||||
It might evolve to support a much richer variety of questions, more graceful rendering, and superior user experience.
|
It might evolve to support a much richer variety of questions, more graceful rendering, and superior user experience.
|
||||||
All such greatness has humble beginnings.
|
All such greatness has humble beginnings.
|
||||||
|
|
||||||
在本食谱中,我们会展示如何利用`ngFormModel`来动态渲染一个简单的表单,包括多种类型控制器和验证规则。
|
在本菜谱中,我们会展示如何利用`ngFormModel`来动态渲染一个简单的表单,包括多种类型控制器和验证规则。
|
||||||
这只是一个初级的开始,但是任何伟大都是从谦卑开始的。我们可以在这个基础上添加种类丰富的问卷问题,更加优美的渲染和更加优越的用户体验。
|
这只是一个初级的开始,但是任何伟大都是从谦卑开始的。我们可以在这个基础上添加种类丰富的问卷问题,更加优美的渲染和更加优越的用户体验。
|
||||||
|
|
||||||
In our example we use a dynamic form to build an online application experience for heroes seeking employment.
|
In our example we use a dynamic form to build an online application experience for heroes seeking employment.
|
||||||
|
@ -5,7 +5,7 @@ a(id='top')
|
|||||||
Our app should be able to make the browser title bar say whatever we want it to say.
|
Our app should be able to make the browser title bar say whatever we want it to say.
|
||||||
This cookbook explains how to do it.
|
This cookbook explains how to do it.
|
||||||
|
|
||||||
应用程序应该能让浏览器标题栏显示我们想要它显示的内容。本*食谱*解释怎么做。
|
应用程序应该能让浏览器标题栏显示我们想要它显示的内容。本*菜谱*解释怎么做。
|
||||||
:marked
|
:marked
|
||||||
**See the [live example](/resources/live-examples/cb-set-document-title/ts/plnkr.html)**.
|
**See the [live example](/resources/live-examples/cb-set-document-title/ts/plnkr.html)**.
|
||||||
|
|
||||||
|
@ -13,7 +13,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
|
||||||
|
|
||||||
|
@ -2003,8 +2003,8 @@ figure.image-display
|
|||||||
<a id="structural-directive"></a>
|
<a id="structural-directive"></a>
|
||||||
.l-main-section
|
.l-main-section
|
||||||
:marked
|
:marked
|
||||||
## * and <template>
|
## `*` and <template>
|
||||||
## *与<template*>
|
## `*`与<template*>
|
||||||
When we reviewed the `NgFor`, `NgIf`, and `NgSwitch` built-in directives, we called out an oddity of the syntax: the asterisk (`*`) that appears before the directive names.
|
When we reviewed the `NgFor`, `NgIf`, and `NgSwitch` built-in directives, we called out an oddity of the syntax: the asterisk (`*`) that appears before the directive names.
|
||||||
|
|
||||||
当我们审视`NgFor`、`NgIf`和`NgSwitch`内建指令时,我们使用了一种古怪的语法:出现在指令名称前面的星号(`*`)。
|
当我们审视`NgFor`、`NgIf`和`NgSwitch`内建指令时,我们使用了一种古怪的语法:出现在指令名称前面的星号(`*`)。
|
||||||
|
Loading…
x
Reference in New Issue
Block a user