minor change to ts-to-js.jade review.

This commit is contained in:
Zhimin YE (Rex) 2016-06-09 14:18:27 +01:00
parent c36425eec7
commit 8ae3d52cbc
2 changed files with 6 additions and 6 deletions

View File

@ -7,7 +7,7 @@ include ../../../../_includes/_util-fns
Angular 2 APIs. Angular 2 APIs.
所有能在Angular 2的TypeScript环境里面做的事情我们都能在JavaScript里面实现。 所有能在Angular 2的TypeScript环境里面做的事情我们都能在JavaScript里面实现。
从一个语言翻译到另一个语言最多只能改变对源代码的管理方法和如何访问Angular 2的API 从一个语言换成到另一个语言最多只会影响源代码的管理方法和Angular 2 API的访问方法
Since TypeScript is a popular language option in Angular 2, many of the Since TypeScript is a popular language option in Angular 2, many of the
code examples you see on the Internet as well as on this site are written code examples you see on the Internet as well as on this site are written

View File

@ -3,7 +3,7 @@ include ../_util-fns
:marked :marked
## Write *Component-Relative* URLs to component templates and style files ## Write *Component-Relative* URLs to component templates and style files
## 为组件模板和样式表文件*相对于组件的*URL ## 为组件模板和样式表文件提供*相对于组件的*URL
Our components often refer to external template and style files. Our components often refer to external template and style files.
We identify those files with a URL in the `templateUrl` and `styleUrls` properties of the `@Component` metadata We identify those files with a URL in the `templateUrl` and `styleUrls` properties of the `@Component` metadata
@ -17,8 +17,8 @@ include ../_util-fns
By default, we *must* specify the full path back to the application root. By default, we *must* specify the full path back to the application root.
We call this an ***absolute path*** because it is *absolute* with respect to the application root. We call this an ***absolute path*** because it is *absolute* with respect to the application root.
默认情况下,我们*必须*指定一个到应用根目录的完整路径。 默认情况下,我们*必须*指定一个一直到应用程序根目录的完整路径。
我们称之为***绝对路径***,因为如果以应用程序的根目录为基准来看,它就是*绝对路径* 我们称之为***绝对路径***,因为它*绝对的*以应用程序的根目录为基准
There are two problems with an *absolute path*: There are two problems with an *absolute path*:
@ -47,7 +47,7 @@ include ../_util-fns
with a suitable package loader such as `systemjs` or `webpack`. with a suitable package loader such as `systemjs` or `webpack`.
Learn why [below](#why-default). Learn why [below](#why-default).
如果我们把应用构建成`commonjs`模块,并用一个合适的包加载器(比如`systemjs`或`webpack`)加载那些模块,就可以了 如果把应用构建成`commonjs`模块,并用一个合适的包加载器(比如`systemjs`或`webpack`)加载那些模块,我们就可以用相对路径
[在下方](#why-default)可以学到原理。 [在下方](#why-default)可以学到原理。
The Angular 2 CLI uses these technologies and defaults to the The Angular 2 CLI uses these technologies and defaults to the
@ -56,7 +56,7 @@ include ../_util-fns
how it works. how it works.
Angular 2 CLI(命令行界面)使用这些技术,并默认采用这里所说的*组件相对路径*方法。 Angular 2 CLI(命令行界面)使用这些技术,并默认采用这里所说的*组件相对路径*方法。
用CLI用户可以跳过本章并且往后阅读来了解它是怎么工作的。 用CLI用户可以跳过本章或者继续阅读来了解它是怎么工作的。
.l-main-section .l-main-section
:marked :marked