fix: quickstart format bug.
This commit is contained in:
parent
e1d5af61d2
commit
383b67d262
@ -78,8 +78,8 @@ figure.image-display
|
|||||||
|
|
||||||
- var step = _stepInit // reinitialize step counter for headers to come
|
- var step = _stepInit // reinitialize step counter for headers to come
|
||||||
.l-main-section#prereq
|
.l-main-section#prereq
|
||||||
h2#prereq Prerequisite: #{_prereq}
|
h2 Prerequisite: #{_prereq}
|
||||||
h2#prereq 环境准备:#{_prereq}
|
h2 环境准备:#{_prereq}
|
||||||
|
|
||||||
block setup-tooling
|
block setup-tooling
|
||||||
:marked
|
:marked
|
||||||
@ -102,10 +102,10 @@ block setup-tooling
|
|||||||
header 下载源码
|
header 下载源码
|
||||||
:marked
|
:marked
|
||||||
Instead of following each step of these instructions, we can
|
Instead of following each step of these instructions, we can
|
||||||
[download the QuickStart source](https://github.com/angular/quickstart/blob/master/README.md)
|
[download the QuickStart source](!{_quickstartSrcURL})
|
||||||
from github and follow its brief instructions.
|
from GitHub and follow its brief instructions.
|
||||||
|
|
||||||
如果不想跟着这里的操作指南来一步步地做,可以从github[下载“快速起步”的源码](https://github.com/angular/quickstart/blob/master/README.md),这样只要注意那些操作要点就行了。
|
如果不想跟着这里的操作指南来一步步地做,可以从GitHub[下载“快速起步”的源码](!{_quickstartSrcURL}),这样只要注意那些操作要点就行了。
|
||||||
|
|
||||||
.l-main-section
|
.l-main-section
|
||||||
button(class="verbose off md-primary md-button md-ink-ripple", type="button", onclick="verbose(false)").
|
button(class="verbose off md-primary md-button md-ink-ripple", type="button", onclick="verbose(false)").
|
||||||
@ -136,17 +136,15 @@ button(class="verbose on md-primary md-button md-ink-ripple", type="button", onc
|
|||||||
code-example(format="nocode").
|
code-example(format="nocode").
|
||||||
点击右侧的图标,来把代码片段拷贝到剪贴板 ==>
|
点击右侧的图标,来把代码片段拷贝到剪贴板 ==>
|
||||||
|
|
||||||
.l-main-section
|
|
||||||
h2#create-and-configure Step 1: Create and configure the project
|
|
||||||
h2#create-and-configure 步骤1:创建并配置项目
|
|
||||||
|
|
||||||
- var _package_and_config_files = _docsFor == 'dart' ? 'pubspec.yaml' : 'package definition and configuration files'
|
- var _package_and_config_files = _docsFor == 'dart' ? 'pubspec.yaml' : 'package definition and configuration files'
|
||||||
- var _package_and_config_filesCn = _docsFor == 'dart' ? 'pubspec.yaml' : '包定义与配置文件'
|
- var _package_and_config_filesCn = _docsFor == 'dart' ? 'pubspec.yaml' : '包定义与配置文件'
|
||||||
|
|
||||||
.l-main-section#create-and-configure
|
.l-main-section#create-and-configure
|
||||||
:marked
|
:marked
|
||||||
## Step 1: Create and configure the project
|
## Step 1: Create and configure the project
|
||||||
|
|
||||||
|
## 步骤1:创建并配置项目
|
||||||
|
|
||||||
In this step we:
|
In this step we:
|
||||||
|
|
||||||
在这一步,我们将:
|
在这一步,我们将:
|
||||||
@ -330,7 +328,7 @@ block install-packages
|
|||||||
**全部设置完了。** 来写点代码吧。
|
**全部设置完了。** 来写点代码吧。
|
||||||
|
|
||||||
.l-main-section#root-component
|
.l-main-section#root-component
|
||||||
:marked
|
:marked
|
||||||
## Step 2: Our first Angular component
|
## Step 2: Our first Angular component
|
||||||
|
|
||||||
Let's create a folder to hold our application and add a super-simple Angular component.
|
Let's create a folder to hold our application and add a super-simple Angular component.
|
||||||
@ -452,7 +450,7 @@ p.
|
|||||||
>模板中只有一行HTML:“*My First Angular App*”。
|
>模板中只有一行HTML:“*My First Angular App*”。
|
||||||
|
|
||||||
>A more advanced template could contain data bindings to component properties
|
>A more advanced template could contain data bindings to component properties
|
||||||
and might identify other application compoents which have their own templates.
|
and might identify other application components which have their own templates.
|
||||||
These templates might identify yet other components.
|
These templates might identify yet other components.
|
||||||
In this way an Angular application becomes a tree of components.
|
In this way an Angular application becomes a tree of components.
|
||||||
|
|
||||||
@ -842,8 +840,8 @@ h2#index 步骤!{step++}:添加#[code index.html]
|
|||||||
[styles.css](https://github.com/angular/angular.io/blob/master/public/docs/_examples/styles.css)
|
[styles.css](https://github.com/angular/angular.io/blob/master/public/docs/_examples/styles.css)
|
||||||
|
|
||||||
.l-main-section#build-and-run
|
.l-main-section#build-and-run
|
||||||
h2#build-and-run Step !{step++}: Build and run the app!
|
h2 Step !{step++}: Build and run the app!
|
||||||
h2#build-and-run 步骤!{step++}:构建并运行本应用!
|
h2 步骤!{step++}:构建并运行本应用!
|
||||||
block run-app
|
block run-app
|
||||||
:marked
|
:marked
|
||||||
Open a terminal window and enter this command:
|
Open a terminal window and enter this command:
|
||||||
@ -879,8 +877,9 @@ block build-app
|
|||||||
//- Nothing for ts.
|
//- Nothing for ts.
|
||||||
|
|
||||||
:marked
|
:marked
|
||||||
### Make some changes
|
## Make some changes
|
||||||
### 做点改变
|
|
||||||
|
## 做点改变
|
||||||
|
|
||||||
Try changing the message to "My SECOND Angular 2 app".
|
Try changing the message to "My SECOND Angular 2 app".
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user