From 6c3d57aee97b9cf8b10ffe4b82303629c29212b8 Mon Sep 17 00:00:00 2001 From: Zhicheng Wang Date: Sat, 24 Mar 2018 13:12:42 +0800 Subject: [PATCH] =?UTF-8?q?fix:=20=E5=90=88=E5=B9=B6=E4=BA=86=E6=9C=80?= =?UTF-8?q?=E6=96=B0=E7=89=88=E6=9C=AC?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- aio/content/guide/aot-compiler.md | 24 +- aio/content/guide/api-page-class.md | 2 - aio/content/guide/architecture-components.md | 212 ++++ aio/content/guide/architecture-modules.md | 123 ++ aio/content/guide/architecture-next-steps.md | 48 + aio/content/guide/architecture-services.md | 81 ++ aio/content/guide/architecture.md | 908 ++------------- aio/content/guide/bootstrapping.md | 2 +- aio/content/guide/browser-support.md | 4 +- aio/content/guide/cheatsheet.md | 4 +- aio/content/guide/comparing-observables.md | 42 +- aio/content/guide/custom-elements.md | 73 ++ aio/content/guide/docs-style-guide.md | 24 +- aio/content/guide/dynamic-component-loader.md | 6 +- aio/content/guide/frequent-ngmodules.md | 4 +- aio/content/guide/http.md | 8 +- aio/content/guide/i18n.md | 41 +- aio/content/guide/lazy-loading-ngmodules.md | 16 +- aio/content/guide/lifecycle-hooks.md | 2 +- aio/content/guide/module-types.md | 24 +- aio/content/guide/ngmodule-api.md | 20 +- aio/content/guide/ngmodule-faq.md | 2 + aio/content/guide/ngmodule-vs-jsmodule.md | 10 +- aio/content/guide/ngmodules.md | 18 +- aio/content/guide/npm-packages.md | 4 +- aio/content/guide/observables-in-angular.md | 14 +- aio/content/guide/observables.md | 4 +- .../guide/practical-observable-usage.md | 10 +- aio/content/guide/providers.md | 8 +- aio/content/guide/quickstart.md | 4 +- aio/content/guide/reactive-forms.md | 1032 +++++++++-------- aio/content/guide/rx-library.md | 10 +- .../guide/service-worker-communications.md | 12 +- aio/content/guide/service-worker-config.md | 40 +- aio/content/guide/service-worker-devops.md | 26 +- .../guide/service-worker-getting-started.md | 8 +- aio/content/guide/service-worker-intro.md | 16 +- aio/content/guide/sharing-ngmodules.md | 20 +- aio/content/guide/singleton-services.md | 14 +- aio/content/guide/structural-directives.md | 2 +- aio/content/guide/template-syntax.md | 2 +- aio/content/guide/testing.md | 48 +- aio/content/guide/universal.md | 52 +- aio/content/guide/webpack.md | 6 +- aio/content/tutorial/toh-pt0.md | 4 +- aio/content/tutorial/toh-pt1.md | 12 +- aio/content/tutorial/toh-pt2.md | 24 +- aio/content/tutorial/toh-pt3.md | 4 +- aio/content/tutorial/toh-pt4.md | 30 +- aio/content/tutorial/toh-pt5.md | 58 +- aio/content/tutorial/toh-pt6.md | 54 +- aio/tools/translator/dict-latest.json | 11 +- 52 files changed, 1540 insertions(+), 1687 deletions(-) create mode 100644 aio/content/guide/architecture-components.md create mode 100644 aio/content/guide/architecture-modules.md create mode 100644 aio/content/guide/architecture-next-steps.md create mode 100644 aio/content/guide/architecture-services.md create mode 100644 aio/content/guide/custom-elements.md diff --git a/aio/content/guide/aot-compiler.md b/aio/content/guide/aot-compiler.md index 9b59395130..0471294df9 100644 --- a/aio/content/guide/aot-compiler.md +++ b/aio/content/guide/aot-compiler.md @@ -333,7 +333,7 @@ JavaScript with [JsDoc](http://usejsdoc.org/) comments needed by the ### *annotationsAs* Use this option to modify how the Angular specific annotations are emitted to improve tree-shaking. Non-Angular -annotations and decorators are unnaffected. Default is `static fields`. +annotations and decorators are unaffected. Default is `static fields`. 使用这个选项来修改生成 Angular 特有注解的方式,以提升摇树优化(tree-shaking)的效果。它对 Angular 自身之外的注解和装饰器无效。 默认值是 `static fields`。 @@ -349,16 +349,6 @@ This tells the compiler to print extra information while compiling templates. 它告诉编译器在编译模板时打印额外的信息。 -### *enableLegacyTemplate* - -The use of `