fix: 纠正细微的翻译错误

This commit is contained in:
Zhicheng Wang 2017-10-12 17:39:14 +08:00
parent 6cd3a54c5a
commit fd40d2cbd8

View File

@ -646,15 +646,19 @@ Read more about [NgModules](guide/ngmodule).
### Bootstrapping hybrid applications ### Bootstrapping hybrid applications
### 引导AngularJS+2的混合式应用程序 ### 引导混合式应用程序
To bootstrap a hybrid application, you must bootstrap each of the Angular and To bootstrap a hybrid application, you must bootstrap each of the Angular and
AngularJS parts of the application. You must bootstrap the Angular bits first and AngularJS parts of the application. You must bootstrap the Angular bits first and
then ask the `UpgradeModule` to bootstrap the AngularJS bits next. then ask the `UpgradeModule` to bootstrap the AngularJS bits next.
要想引导混合式应用,我们在应用中必须同时引导 Angular 和 AngularJS。要先引导 Angular ,然后再调用 `UpgradeModule` 来引导 AngularJS。
In an AngularJS application you have a root AngularJS module, which will also In an AngularJS application you have a root AngularJS module, which will also
be used to bootstrap the AngularJS application. be used to bootstrap the AngularJS application.
在 AngularJS 应用中有一个 AngularJS 的根模块,我们用它来引导 AngularJS 应用。
<code-example path="upgrade-module/src/app/ajs-bootstrap/app.module.ts" region="ng1module" title="app.module.ts"> <code-example path="upgrade-module/src/app/ajs-bootstrap/app.module.ts" region="ng1module" title="app.module.ts">
</code-example> </code-example>
@ -664,6 +668,8 @@ directive somewhere on the HTML page. But for hybrid applications, you manually
manual JavaScript [`angular.bootstrap`](https://docs.angularjs.org/api/ng/function/angular.bootstrap) manual JavaScript [`angular.bootstrap`](https://docs.angularjs.org/api/ng/function/angular.bootstrap)
method even before switching them to hybrid mode. method even before switching them to hybrid mode.
单纯的 AngularJS 应用可以在 HTML 页面中使用 `ng-app` 指令进行引导,但对于混合式应用我们要通过 `UpgradeModule` 模块进行手动引导。在此之前,
Say you have an `ng-app` driven bootstrap such as this one: Say you have an `ng-app` driven bootstrap such as this one:
<code-example path="upgrade-module/src/index-ng-app.html"> <code-example path="upgrade-module/src/index-ng-app.html">