docs(aio): fix broken regions

This commit is contained in:
Jesus Rodriguez 2017-04-19 16:09:00 +02:00 committed by Pete Bacon Darwin
parent 73c7503ae0
commit e07b7ea114
5 changed files with 17 additions and 19 deletions

View File

@ -206,7 +206,7 @@ The following example creates four route definitions, configures the router via
and adds the result to the `AppModule`'s `imports` array. and adds the result to the `AppModule`'s `imports` array.
<code-example path="router/src/app/app.module.0.ts" linenums="false" title="src/app/app.module.ts (excerpt)" region="excerpt"> <code-example path="router/src/app/app.module.0.ts" linenums="false" title="src/app/app.module.ts (excerpt)">
</code-example> </code-example>
@ -915,7 +915,7 @@ Instead of adding the `"/sidekicks"` route, define a `wildcard` route instead an
Create the `PageNotFoundComponent` to display when users visit invalid URLs. Create the `PageNotFoundComponent` to display when users visit invalid URLs.
<code-example path="router/src/app/not-found.component.ts" linenums="false" title="src/app/not-found.component.ts (404 component)" region="404 component"> <code-example path="router/src/app/not-found.component.ts" linenums="false" title="src/app/not-found.component.ts (404 component)">
</code-example> </code-example>
@ -1436,7 +1436,7 @@ Remove the `HeroListComponent` import and the `/heroes` route from the `app-rout
These are concerns at the top level of the application itself. These are concerns at the top level of the application itself.
<code-example path="router/src/app/app-routing.module.2.ts" linenums="false" title="src/app/app-routing.module.ts (v2)" region="v2"> <code-example path="router/src/app/app-routing.module.2.ts" linenums="false" title="src/app/app-routing.module.ts (v2)">
</code-example> </code-example>
@ -3138,7 +3138,7 @@ The `redirectUrl` property will store the attempted URL so you can navigate to i
Revise the `AuthGuard` to call it. Revise the `AuthGuard` to call it.
<code-example path="router/src/app/auth-guard.service.2.ts" linenums="false" title="src/app/auth-guard.service.ts (v2)" region="v2"> <code-example path="router/src/app/auth-guard.service.2.ts" linenums="false" title="src/app/auth-guard.service.ts (v2)">
</code-example> </code-example>
@ -3348,7 +3348,7 @@ wanted to use this guard for this component and needed to get
the component's properties or confirm whether the router should allow navigation away from it. the component's properties or confirm whether the router should allow navigation away from it.
<code-example path="router/src/app/can-deactivate-guard.service.1.ts" linenums="false" title="src/app/can-deactivate-guard.service.ts (component-specific)" region="component-specific"> <code-example path="router/src/app/can-deactivate-guard.service.1.ts" linenums="false" title="src/app/can-deactivate-guard.service.ts (component-specific)">
</code-example> </code-example>
@ -3372,7 +3372,7 @@ to resolve to truthy (navigate) or falsy (stay put).
Add the `Guard` to the crisis detail route in `crisis-center-routing.module.ts` using the `canDeactivate` array. Add the `Guard` to the crisis detail route in `crisis-center-routing.module.ts` using the `canDeactivate` array.
<code-example path="router/src/app/crisis-center/crisis-center-routing.module.3.ts" linenums="false" title="src/app/crisis-center/crisis-center-routing.module.ts (can deactivate guard)" region="can deactivate guard"> <code-example path="router/src/app/crisis-center/crisis-center-routing.module.3.ts" linenums="false" title="src/app/crisis-center/crisis-center-routing.module.ts (can deactivate guard)">
</code-example> </code-example>
@ -3559,7 +3559,7 @@ Add an `anchor` element so you can jump to a certain point on the page.
Add the `NavigationExtras` object to the `router.navigate` method that navigates you to the `/login` route. Add the `NavigationExtras` object to the `router.navigate` method that navigates you to the `/login` route.
<code-example path="router/src/app/auth-guard.service.4.ts" linenums="false" title="src/app/auth-guard.service.ts (v3)" region="v3"> <code-example path="router/src/app/auth-guard.service.4.ts" linenums="false" title="src/app/auth-guard.service.ts (v3)">
</code-example> </code-example>
@ -3582,7 +3582,7 @@ Since you'll be navigating to the *Admin Dashboard* route after logging in, you'
query parameters and fragment. query parameters and fragment.
<code-example path="router/src/app/admin/admin-dashboard.component.2.ts" linenums="false" title="src/app/admin/admin-dashboard.component.ts (v2)" region="v2"> <code-example path="router/src/app/admin/admin-dashboard.component.2.ts" linenums="false" title="src/app/admin/admin-dashboard.component.ts (v2)">
</code-example> </code-example>
@ -3923,7 +3923,7 @@ Now edit the `AdminDashboardComponent` to display the log of preloaded routes.
When you're done it looks like this. When you're done it looks like this.
<code-example path="router/src/app/admin/admin-dashboard.component.ts" linenums="false" title="src/app/admin/admin-dashboard.component.ts (preloaded modules)" region="preloaded modules"> <code-example path="router/src/app/admin/admin-dashboard.component.ts" linenums="false" title="src/app/admin/admin-dashboard.component.ts (preloaded modules)">
</code-example> </code-example>
@ -4196,7 +4196,7 @@ providing the `useHash: true` in an object as the second argument of the `Router
in the `AppModule`. in the `AppModule`.
<code-example path="router/src/app/app.module.6.ts" linenums="false" title="src/app/app.module.ts (hash URL strategy)" region="hash URL strategy"> <code-example path="router/src/app/app.module.6.ts" linenums="false" title="src/app/app.module.ts (hash URL strategy)">
</code-example> </code-example>

View File

@ -1746,7 +1746,7 @@ Learn more about the `FormsModule` and `ngModel` in the
Here's how to import the `FormsModule` to make `[(ngModel)]` available. Here's how to import the `FormsModule` to make `[(ngModel)]` available.
<code-example path="template-syntax/src/app/app.module.1.ts" linenums="false" title="src/app/app.module.ts (FormsModule import)" region="FormsModule import"> <code-example path="template-syntax/src/app/app.module.1.ts" linenums="false" title="src/app/app.module.ts (FormsModule import)">
</code-example> </code-example>

View File

@ -669,7 +669,7 @@ is revised and ready to be navigated to.
Here's what the `HeroDetailComponent` looks like now: Here's what the `HeroDetailComponent` looks like now:
<code-example path="toh-4/src/app/hero-detail.component.ts" title="src/app/hero-detail.component.ts (current)"> <code-example path="toh-pt4/src/app/hero-detail.component.ts" title="src/app/hero-detail.component.ts (current)">
</code-example> </code-example>
@ -936,7 +936,7 @@ the current template exhibits a "master/detail" style with the list of heroes
at the top and details of the selected hero below. at the top and details of the selected hero below.
<code-example path="toh-4/src/app/app.component.ts" region="template" title="src/app/heroes.component.ts (current template)" linenums="false"> <code-example path="toh-pt4/src/app/app.component.ts" region="template" title="src/app/heroes.component.ts (current template)" linenums="false">
</code-example> </code-example>

View File

@ -144,7 +144,7 @@ section of the [HTTP Client](guide/server-communication#in-mem-web-api) page.
In the current `HeroService` implementation, a Promise resolved with mock heroes is returned. In the current `HeroService` implementation, a Promise resolved with mock heroes is returned.
<code-example path="toh-4/src/app/hero.service.ts" region="get-heroes" title="src/app/hero.service.ts (old getHeroes)"> <code-example path="toh-pt4/src/app/hero.service.ts" region="get-heroes" title="src/app/hero.service.ts (old getHeroes)">
</code-example> </code-example>

View File

@ -123,9 +123,7 @@ module.exports =
exclude: [ exclude: [
'**/*plnkr.no-link.html', '**/*plnkr.no-link.html',
'**/node_modules/**', '**/node_modules/**',
// _boilerplate files // boilerplate files
'**/_boilerplate/**',
'**/*/src/styles.css',
'**/*/src/systemjs-angular-loader.js', '**/*/src/systemjs-angular-loader.js',
'**/*/src/systemjs.config.js', '**/*/src/systemjs.config.js',
'**/*/src/tsconfig.json', '**/*/src/tsconfig.json',