diff --git a/aio/content/examples/toh-pt1/app/app.component.1.ts b/aio/content/examples/toh-pt1/app/app.component.1.ts
deleted file mode 100644
index cebe8e6759..0000000000
--- a/aio/content/examples/toh-pt1/app/app.component.1.ts
+++ /dev/null
@@ -1,44 +0,0 @@
-import { Component } from '@angular/core';
-
-let t = {
-// #docregion show-hero
-template: `
heroes = mockHeroes;
-// #enddocregion hero-array-1
-
-// #docregion heroes-template-1
-My Heroes
-
-// #enddocregion heroes-template-1
-
-// #docregion heroes-ngfor-1
-
-// #enddocregion heroes-ngfor-1
-
-// #docregion class-selected-1
-[class.selected]="hero == selectedHero"
-// #enddocregion class-selected-1
-
-// #docregion class-selected-2
-
- {{hero.id}} {{hero.name}}
-
-// #enddocregion class-selected-2
diff --git a/aio/content/examples/toh-pt3/app/app.component.1.html b/aio/content/examples/toh-pt3/app/app.component.1.html
deleted file mode 100644
index 8b6c3b0d82..0000000000
--- a/aio/content/examples/toh-pt3/app/app.component.1.html
+++ /dev/null
@@ -1,12 +0,0 @@
-{{title}}
-My Heroes
-
- -
- {{hero.id}} {{hero.name}}
-
-
-
-
-
diff --git a/aio/content/examples/toh-pt3/app/hero-detail.component.1.ts b/aio/content/examples/toh-pt3/app/hero-detail.component.1.ts
deleted file mode 100644
index fec477fbd7..0000000000
--- a/aio/content/examples/toh-pt3/app/hero-detail.component.1.ts
+++ /dev/null
@@ -1,35 +0,0 @@
-// #docplaster
-// #docregion v1
-import { Component } from '@angular/core';
-
-// #enddocregion v1
-// #docregion hero-import
-import { Hero } from './hero';
-// #enddocregion hero-import
-
-// #docregion v1
-@Component({
- selector: 'hero-detail',
-// #enddocregion v1
- // #docregion template
- template: `
-
-
{{hero.name}} details!
-
{{hero.id}}
-
-
-
-
-
- `
- // #enddocregion template
-// #docregion v1
-})
-export class HeroDetailComponent {
-// #enddocregion v1
-// #docregion hero
- hero: Hero;
-// #enddocregion hero
-// #docregion v1
-}
-// #enddocregion v1
diff --git a/aio/content/examples/toh-pt4/src/app/mock-heroes.ts b/aio/content/examples/toh-pt4/src/app/mock-heroes.ts
index 6f7c5d83a0..1771a7103b 100644
--- a/aio/content/examples/toh-pt4/src/app/mock-heroes.ts
+++ b/aio/content/examples/toh-pt4/src/app/mock-heroes.ts
@@ -2,14 +2,14 @@
import { Hero } from './hero';
export const HEROES: Hero[] = [
- {id: 11, name: 'Mr. Nice'},
- {id: 12, name: 'Narco'},
- {id: 13, name: 'Bombasto'},
- {id: 14, name: 'Celeritas'},
- {id: 15, name: 'Magneta'},
- {id: 16, name: 'RubberMan'},
- {id: 17, name: 'Dynama'},
- {id: 18, name: 'Dr IQ'},
- {id: 19, name: 'Magma'},
- {id: 20, name: 'Tornado'}
+ { id: 11, name: 'Mr. Nice' },
+ { id: 12, name: 'Narco' },
+ { id: 13, name: 'Bombasto' },
+ { id: 14, name: 'Celeritas' },
+ { id: 15, name: 'Magneta' },
+ { id: 16, name: 'RubberMan' },
+ { id: 17, name: 'Dynama' },
+ { id: 18, name: 'Dr IQ' },
+ { id: 19, name: 'Magma' },
+ { id: 20, name: 'Tornado' }
];
diff --git a/aio/content/examples/toh-pt5/src/app/mock-heroes.ts b/aio/content/examples/toh-pt5/src/app/mock-heroes.ts
index 69afde3d34..1771a7103b 100644
--- a/aio/content/examples/toh-pt5/src/app/mock-heroes.ts
+++ b/aio/content/examples/toh-pt5/src/app/mock-heroes.ts
@@ -1,15 +1,15 @@
// #docregion
import { Hero } from './hero';
-export var HEROES: Hero[] = [
- {id: 11, name: 'Mr. Nice'},
- {id: 12, name: 'Narco'},
- {id: 13, name: 'Bombasto'},
- {id: 14, name: 'Celeritas'},
- {id: 15, name: 'Magneta'},
- {id: 16, name: 'RubberMan'},
- {id: 17, name: 'Dynama'},
- {id: 18, name: 'Dr IQ'},
- {id: 19, name: 'Magma'},
- {id: 20, name: 'Tornado'}
+export const HEROES: Hero[] = [
+ { id: 11, name: 'Mr. Nice' },
+ { id: 12, name: 'Narco' },
+ { id: 13, name: 'Bombasto' },
+ { id: 14, name: 'Celeritas' },
+ { id: 15, name: 'Magneta' },
+ { id: 16, name: 'RubberMan' },
+ { id: 17, name: 'Dynama' },
+ { id: 18, name: 'Dr IQ' },
+ { id: 19, name: 'Magma' },
+ { id: 20, name: 'Tornado' }
];
diff --git a/aio/content/examples/toh-pt6/src/app/in-memory-data.service.ts b/aio/content/examples/toh-pt6/src/app/in-memory-data.service.ts
index c915955e22..88c6d72931 100644
--- a/aio/content/examples/toh-pt6/src/app/in-memory-data.service.ts
+++ b/aio/content/examples/toh-pt6/src/app/in-memory-data.service.ts
@@ -2,17 +2,18 @@
import { InMemoryDbService } from 'angular-in-memory-web-api';
export class InMemoryDataService implements InMemoryDbService {
createDb() {
- let heroes = [
- {id: 11, name: 'Mr. Nice'},
- {id: 12, name: 'Narco'},
- {id: 13, name: 'Bombasto'},
- {id: 14, name: 'Celeritas'},
- {id: 15, name: 'Magneta'},
- {id: 16, name: 'RubberMan'},
- {id: 17, name: 'Dynama'},
- {id: 18, name: 'Dr IQ'},
- {id: 19, name: 'Magma'},
- {id: 20, name: 'Tornado'}
+ const heroes = [
+ { id: 0, name: 'Zero' },
+ { id: 11, name: 'Mr. Nice' },
+ { id: 12, name: 'Narco' },
+ { id: 13, name: 'Bombasto' },
+ { id: 14, name: 'Celeritas' },
+ { id: 15, name: 'Magneta' },
+ { id: 16, name: 'RubberMan' },
+ { id: 17, name: 'Dynama' },
+ { id: 18, name: 'Dr IQ' },
+ { id: 19, name: 'Magma' },
+ { id: 20, name: 'Tornado' }
];
return {heroes};
}
diff --git a/aio/content/tutorial/toh-pt6.md b/aio/content/tutorial/toh-pt6.md
index d7bf0ead0a..997852889d 100644
--- a/aio/content/tutorial/toh-pt6.md
+++ b/aio/content/tutorial/toh-pt6.md
@@ -119,7 +119,7 @@ Add the file `in-memory-data.service.ts` in `app` with the following content:
This file replaces `mock-heroes.ts`, which is now safe to delete.
-
+Added hero "Zero" to confirm that the data service can handle a hero with `id==0`.
diff --git a/aio/tools/examples/shared/package.json b/aio/tools/examples/shared/package.json
index 661364764c..5b8a384ac1 100644
--- a/aio/tools/examples/shared/package.json
+++ b/aio/tools/examples/shared/package.json
@@ -25,7 +25,7 @@
"@angular/router": "~4.0.0",
"@angular/tsc-wrapped": "~4.0.0",
"@angular/upgrade": "~4.0.0",
- "angular-in-memory-web-api": "~0.3.1",
+ "angular-in-memory-web-api": "~0.3.2",
"core-js": "^2.4.1",
"rxjs": "5.0.1",
"systemjs": "0.19.39",
diff --git a/aio/tools/examples/shared/yarn.lock b/aio/tools/examples/shared/yarn.lock
index 88b1dc1d2a..7c53ba2fb1 100644
--- a/aio/tools/examples/shared/yarn.lock
+++ b/aio/tools/examples/shared/yarn.lock
@@ -290,9 +290,9 @@ amdefine@>=0.0.4:
version "1.0.1"
resolved "https://registry.yarnpkg.com/amdefine/-/amdefine-1.0.1.tgz#4a5282ac164729e93619bcfd3ad151f817ce91f5"
-angular-in-memory-web-api@~0.3.1:
- version "0.3.1"
- resolved "https://registry.yarnpkg.com/angular-in-memory-web-api/-/angular-in-memory-web-api-0.3.1.tgz#3b2fe5965c3183df32081c2874ac113a827e86e3"
+angular-in-memory-web-api@~0.3.2:
+ version "0.3.2"
+ resolved "https://registry.yarnpkg.com/angular-in-memory-web-api/-/angular-in-memory-web-api-0.3.2.tgz#8836d9e2534d37b728f3cb5a1caf6fe1e7fbbecd"
angular2-template-loader@^0.6.0:
version "0.6.2"
@@ -4884,7 +4884,7 @@ request-progress@~2.0.1:
dependencies:
throttleit "^1.0.0"
-request@2, request@^2.72.0, request@^2.79.0, request@~2.79.0:
+request@2, request@^2.72.0, request@^2.78.0, request@^2.79.0, request@~2.79.0:
version "2.79.0"
resolved "https://registry.yarnpkg.com/request/-/request-2.79.0.tgz#4dfe5bf6be8b8cdc37fcf93e04b65577722710de"
dependencies:
@@ -4934,7 +4934,7 @@ request@2.78.0:
tough-cookie "~2.3.0"
tunnel-agent "~0.4.1"
-request@^2.78.0, request@^2.81.0:
+request@^2.81.0:
version "2.81.0"
resolved "https://registry.yarnpkg.com/request/-/request-2.81.0.tgz#c6928946a0e06c5f8d6f8a9333469ffda46298a0"
dependencies:
@@ -6263,11 +6263,7 @@ xml2js@^0.4.17:
sax ">=0.6.0"
xmlbuilder "^4.1.0"
-xmlbuilder@>=1.0.0:
- version "8.2.2"
- resolved "https://registry.yarnpkg.com/xmlbuilder/-/xmlbuilder-8.2.2.tgz#69248673410b4ba42e1a6136551d2922335aa773"
-
-xmlbuilder@^4.1.0:
+xmlbuilder@>=1.0.0, xmlbuilder@^4.1.0:
version "4.2.1"
resolved "https://registry.yarnpkg.com/xmlbuilder/-/xmlbuilder-4.2.1.tgz#aa58a3041a066f90eaa16c2f5389ff19f3f461a5"
dependencies: