diff --git a/public/docs/_examples/package.json b/public/docs/_examples/package.json index b7b8afc084..c88ec62936 100644 --- a/public/docs/_examples/package.json +++ b/public/docs/_examples/package.json @@ -38,7 +38,7 @@ "rxjs": "5.0.0-beta.6", "zone.js": "^0.6.12", - "angular2-in-memory-web-api": "0.0.7", + "angular2-in-memory-web-api": "0.0.8", "bootstrap": "^3.3.6" }, "devDependencies": { diff --git a/public/docs/_examples/quickstart/js/package.1.json b/public/docs/_examples/quickstart/js/package.1.json index 30801c9e48..b71ddfaa67 100644 --- a/public/docs/_examples/quickstart/js/package.1.json +++ b/public/docs/_examples/quickstart/js/package.1.json @@ -22,7 +22,7 @@ "rxjs": "5.0.0-beta.6", "zone.js": "0.6.12", - "angular2-in-memory-web-api": "0.0.7", + "angular2-in-memory-web-api": "0.0.8", "bootstrap": "^3.3.6" }, "devDependencies": { diff --git a/public/docs/_examples/quickstart/ts/package.1.json b/public/docs/_examples/quickstart/ts/package.1.json index 88768b56f2..61458998db 100644 --- a/public/docs/_examples/quickstart/ts/package.1.json +++ b/public/docs/_examples/quickstart/ts/package.1.json @@ -27,7 +27,7 @@ "rxjs": "5.0.0-beta.6", "zone.js": "^0.6.12", - "angular2-in-memory-web-api": "0.0.7", + "angular2-in-memory-web-api": "0.0.8", "bootstrap": "^3.3.6" }, "devDependencies": { diff --git a/public/docs/_examples/toh-6/ts/app/heroes.component.ts b/public/docs/_examples/toh-6/ts/app/heroes.component.ts index ea3ebf2388..71ce908c60 100644 --- a/public/docs/_examples/toh-6/ts/app/heroes.component.ts +++ b/public/docs/_examples/toh-6/ts/app/heroes.component.ts @@ -49,7 +49,8 @@ export class HeroesComponent implements OnInit { this._heroService .delete(hero) .then(res => { - this.heroes = this.heroes.filter(h => h.id !== hero.id); + this.heroes = this.heroes.filter(h => h !== hero); + if (this.selectedHero === hero) { this.selectedHero = null; } }) .catch(error => this.error = error); // TODO: Display error message }