Skip to content
This repository was archived by the owner on Dec 4, 2017. It is now read-only.

Commit 6e0f80c

Browse files
committed
docs: update api-in-mem-web-api to v.0.0.8
1 parent feec37b commit 6e0f80c

File tree

4 files changed

+5
-4
lines changed

4 files changed

+5
-4
lines changed

public/docs/_examples/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,7 @@
3838
"rxjs": "5.0.0-beta.6",
3939
"zone.js": "^0.6.12",
4040

41-
"angular2-in-memory-web-api": "0.0.7",
41+
"angular2-in-memory-web-api": "0.0.8",
4242
"bootstrap": "^3.3.6"
4343
},
4444
"devDependencies": {

public/docs/_examples/quickstart/js/package.1.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@
2222
"rxjs": "5.0.0-beta.6",
2323
"zone.js": "0.6.12",
2424

25-
"angular2-in-memory-web-api": "0.0.7",
25+
"angular2-in-memory-web-api": "0.0.8",
2626
"bootstrap": "^3.3.6"
2727
},
2828
"devDependencies": {

public/docs/_examples/quickstart/ts/package.1.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@
2727
"rxjs": "5.0.0-beta.6",
2828
"zone.js": "^0.6.12",
2929

30-
"angular2-in-memory-web-api": "0.0.7",
30+
"angular2-in-memory-web-api": "0.0.8",
3131
"bootstrap": "^3.3.6"
3232
},
3333
"devDependencies": {

public/docs/_examples/toh-6/ts/app/heroes.component.ts

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -49,7 +49,8 @@ export class HeroesComponent implements OnInit {
4949
this._heroService
5050
.delete(hero)
5151
.then(res => {
52-
this.heroes = this.heroes.filter(h => h.id !== hero.id);
52+
this.heroes = this.heroes.filter(h => h !== hero);
53+
if (this.selectedHero === hero) { this.selectedHero = null; }
5354
})
5455
.catch(error => this.error = error); // TODO: Display error message
5556
}

0 commit comments

Comments
 (0)