From 58e5fbe0079046312d68ce0e72c3d1eb1b95e674 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jes=C3=BAs=20Rodr=C3=ADguez?= Date: Sun, 2 Apr 2017 00:12:45 +0200 Subject: [PATCH] chore: miscelanea fixes for new aio (#3491) --- public/docs/ts/latest/cookbook/ts-to-js.jade | 2 +- public/docs/ts/latest/guide/ngmodule.jade | 11 +++++------ public/docs/ts/latest/tutorial/toh-pt5.jade | 2 +- public/docs/ts/latest/tutorial/toh-pt6.jade | 10 +++++----- 4 files changed, 12 insertions(+), 13 deletions(-) diff --git a/public/docs/ts/latest/cookbook/ts-to-js.jade b/public/docs/ts/latest/cookbook/ts-to-js.jade index f83aac94b3..92e6a63e0b 100644 --- a/public/docs/ts/latest/cookbook/ts-to-js.jade +++ b/public/docs/ts/latest/cookbook/ts-to-js.jade @@ -26,7 +26,7 @@ a#toc * [View and Child Decorators](#view-child-decorators)
* [AOT compilation in _TypeScript_ Only](#aot)
- **Run and compare the live _TypeScript_ and JavaScript + **Run and compare the live TypeScript and JavaScript code shown in this cookbook.** a#from-ts diff --git a/public/docs/ts/latest/guide/ngmodule.jade b/public/docs/ts/latest/guide/ngmodule.jade index fd2c0ebe2f..2a4ca49823 100644 --- a/public/docs/ts/latest/guide/ngmodule.jade +++ b/public/docs/ts/latest/guide/ngmodule.jade @@ -58,7 +58,7 @@ block includes * A minimal NgModule app * The first contact module * The revised contact module - * Just before adding _SharedModule_ + * Just before adding SharedModule * The final version ### Frequently asked questions (FAQs) @@ -823,11 +823,10 @@ a#shared-module and share them with the modules that need them. 1. Create an `src/app/shared` folder. - - * Move the `AwesomePipe` and `HighlightDirective` from `src/app/contact` to `src/app/shared`. - * Delete the `HighlightDirective` classes from `src/app/` and `src/app/hero`. - * Create a `SharedModule` class to own the shared material. - * Update other feature modules to import `SharedModule`. + 1. Move the `AwesomePipe` and `HighlightDirective` from `src/app/contact` to `src/app/shared`. + 1. Delete the `HighlightDirective` classes from `src/app/` and `src/app/hero`. + 1. Create a `SharedModule` class to own the shared material. + 1. Update other feature modules to import `SharedModule`. Here is the `SharedModule`: +makeExample('ngmodule/ts/src/app/shared/shared.module.ts', '', 'src/app/src/app/shared/shared.module.ts') diff --git a/public/docs/ts/latest/tutorial/toh-pt5.jade b/public/docs/ts/latest/tutorial/toh-pt5.jade index 524274600a..8efd8e2b1f 100644 --- a/public/docs/ts/latest/tutorial/toh-pt5.jade +++ b/public/docs/ts/latest/tutorial/toh-pt5.jade @@ -290,7 +290,7 @@ a#configure-routes +makeExample('toh-5/ts/src/app/app.module.ts', 'dashboard', 'src/app/app.module.ts (dashboard)') :marked - ### Add a !{_redirect} route + ### Add a redirect route Currently, the browser launches with `/` in the address bar. When the app starts, it should show the dashboard and diff --git a/public/docs/ts/latest/tutorial/toh-pt6.jade b/public/docs/ts/latest/tutorial/toh-pt6.jade index c078e9f8eb..aeb7624997 100644 --- a/public/docs/ts/latest/tutorial/toh-pt6.jade +++ b/public/docs/ts/latest/tutorial/toh-pt6.jade @@ -24,12 +24,12 @@ block includes ## Keep the app transpiling and running Enter the following command in the terminal window: - code-example(language="sh" class="code-shell"). - npm start +code-example(language="sh" class="code-shell"). + npm start - :marked - This command runs the TypeScript compiler in "watch mode", recompiling automatically when the code changes. - The command simultaneously launches the app in a browser and refreshes the browser when the code changes. +:marked + This command runs the TypeScript compiler in "watch mode", recompiling automatically when the code changes. + The command simultaneously launches the app in a browser and refreshes the browser when the code changes. :marked You can keep building the Tour of Heroes without pausing to recompile or refresh the browser.