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

Commit 6e17d33

Browse files
authored
chore: update samples to "angular-in-memory-web-api" (#2472)
chore: update samples to "angular-in-memory-web-api"
1 parent 738b714 commit 6e17d33

File tree

17 files changed

+44
-44
lines changed

17 files changed

+44
-44
lines changed

public/docs/_examples/cb-dependency-injection/ts/app/app.module.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ import { LocationStrategy,
99
import { NgModule } from '@angular/core';
1010

1111
import { HeroData } from './hero-data';
12-
import { InMemoryWebApiModule } from 'angular2-in-memory-web-api';
12+
import { InMemoryWebApiModule } from 'angular-in-memory-web-api';
1313

1414

1515
import { AppComponent } from './app.component';

public/docs/_examples/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,7 @@
3737
"@angular/platform-server": "2.0.0",
3838
"@angular/router": "3.0.0",
3939
"@angular/upgrade": "2.0.0",
40-
"angular2-in-memory-web-api": "0.0.20",
40+
"angular-in-memory-web-api": "0.1.0",
4141
"bootstrap": "^3.3.6",
4242
"core-js": "^2.4.1",
4343
"reflect-metadata": "^0.1.3",

public/docs/_examples/quickstart/ts/systemjs.config.1.js

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -25,8 +25,8 @@
2525
'@angular/forms': 'npm:@angular/forms/bundles/forms.umd.js',
2626

2727
// other libraries
28-
'rxjs': 'npm:rxjs',
29-
'angular2-in-memory-web-api': 'npm:angular2-in-memory-web-api',
28+
'rxjs': 'npm:rxjs',
29+
'angular-in-memory-web-api': 'npm:angular-in-memory-web-api',
3030
},
3131
// packages tells the System loader how to load when no filename and/or no extension
3232
packages: {
@@ -37,7 +37,7 @@
3737
rxjs: {
3838
defaultExtension: 'js'
3939
},
40-
'angular2-in-memory-web-api': {
40+
'angular-in-memory-web-api': {
4141
main: './index.js',
4242
defaultExtension: 'js'
4343
}

public/docs/_examples/server-communication/ts/app/app.module.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ import { BrowserModule } from '@angular/platform-browser';
44
import { FormsModule } from '@angular/forms';
55
import { HttpModule, JsonpModule } from '@angular/http';
66

7-
import { InMemoryWebApiModule } from 'angular2-in-memory-web-api';
7+
import { InMemoryWebApiModule } from 'angular-in-memory-web-api';
88
import { HeroData } from './hero-data';
99

1010
import { AppComponent } from './app.component';

public/docs/_examples/server-communication/ts/app/hero-data.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
// #docregion
2-
import { InMemoryDbService } from 'angular2-in-memory-web-api';
2+
import { InMemoryDbService } from 'angular-in-memory-web-api';
33
export class HeroData implements InMemoryDbService {
44
createDb() {
55
let heroes = [

public/docs/_examples/server-communication/ts/app/toh/hero.service.ts

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -15,14 +15,14 @@ import { Observable } from 'rxjs/Observable';
1515

1616
@Injectable()
1717
export class HeroService {
18-
// #docregion ctor
19-
constructor (private http: Http) {}
20-
// #enddocregion ctor
21-
2218
// #docregion endpoint
2319
private heroesUrl = 'app/heroes'; // URL to web API
2420
// #enddocregion endpoint
2521

22+
// #docregion ctor
23+
constructor (private http: Http) {}
24+
// #enddocregion ctor
25+
2626
// #docregion methods, error-handling, http-get
2727
getHeroes (): Observable<Hero[]> {
2828
return this.http.get(this.heroesUrl)

public/docs/_examples/style-guide/ts/app/main.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ import { platformBrowserDynamic } from '@angular/platform-browser-dynamic';
33
import { BrowserModule } from '@angular/platform-browser';
44

55
import { HttpModule } from '@angular/http';
6-
import { InMemoryWebApiModule } from 'angular2-in-memory-web-api';
6+
import { InMemoryWebApiModule } from 'angular-in-memory-web-api';
77

88
import { RouterModule } from '@angular/router';
99

public/docs/_examples/systemjs.config.js

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -25,8 +25,8 @@
2525
'@angular/upgrade': 'npm:@angular/upgrade/bundles/upgrade.umd.js',
2626

2727
// other libraries
28-
'rxjs': 'npm:rxjs',
29-
'angular2-in-memory-web-api': 'npm:angular2-in-memory-web-api',
28+
'rxjs': 'npm:rxjs',
29+
'angular-in-memory-web-api': 'npm:angular-in-memory-web-api',
3030
},
3131
// packages tells the System loader how to load when no filename and/or no extension
3232
packages: {
@@ -37,7 +37,7 @@
3737
rxjs: {
3838
defaultExtension: 'js'
3939
},
40-
'angular2-in-memory-web-api': {
40+
'angular-in-memory-web-api': {
4141
main: './index.js',
4242
defaultExtension: 'js'
4343
}

public/docs/_examples/systemjs.config.plunker.build.js

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -50,10 +50,10 @@
5050
'@angular/forms/testing': 'ng:forms-builds/master/bundles/forms-testing.umd.js',
5151

5252
// other libraries
53-
'rxjs': 'npm:rxjs',
54-
'angular2-in-memory-web-api': 'npm:angular2-in-memory-web-api',
55-
'ts': 'npm:[email protected]/lib/plugin.js',
56-
'typescript': 'npm:[email protected]/lib/typescript.js',
53+
'rxjs': 'npm:rxjs',
54+
'angular-in-memory-web-api': 'npm:angular-in-memory-web-api',
55+
'ts': 'npm:[email protected]/lib/plugin.js',
56+
'typescript': 'npm:[email protected]/lib/typescript.js',
5757

5858
},
5959
// packages tells the System loader how to load when no filename and/or no extension
@@ -65,7 +65,7 @@
6565
rxjs: {
6666
defaultExtension: 'js'
6767
},
68-
'angular2-in-memory-web-api': {
68+
'angular-in-memory-web-api': {
6969
main: './index.js',
7070
defaultExtension: 'js'
7171
}

public/docs/_examples/systemjs.config.plunker.js

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -37,10 +37,10 @@
3737
'@angular/upgrade': 'npm:@angular/upgrade/bundles/upgrade.umd.js',
3838

3939
// other libraries
40-
'rxjs': 'npm:rxjs',
41-
'angular2-in-memory-web-api': 'npm:angular2-in-memory-web-api',
42-
'ts': 'npm:[email protected]/lib/plugin.js',
43-
'typescript': 'npm:[email protected]/lib/typescript.js',
40+
'rxjs': 'npm:rxjs',
41+
'angular-in-memory-web-api': 'npm:angular-in-memory-web-api',
42+
'ts': 'npm:[email protected]/lib/plugin.js',
43+
'typescript': 'npm:[email protected]/lib/typescript.js',
4444

4545
},
4646
// packages tells the System loader how to load when no filename and/or no extension
@@ -52,7 +52,7 @@
5252
rxjs: {
5353
defaultExtension: 'js'
5454
},
55-
'angular2-in-memory-web-api': {
55+
'angular-in-memory-web-api': {
5656
main: './index.js',
5757
defaultExtension: 'js'
5858
}

0 commit comments

Comments
 (0)