Skip to content

Commit 232e9d1

Browse files
committed
Update to RC 6
1 parent 89ee5e1 commit 232e9d1

File tree

3 files changed

+46
-41
lines changed

3 files changed

+46
-41
lines changed

APM - Final/app/products/product.service.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,7 @@ import { Http, Response } from '@angular/http';
44
import { Observable } from 'rxjs/Observable';
55
import 'rxjs/add/operator/do';
66
import 'rxjs/add/operator/catch';
7+
import 'rxjs/add/operator/map';
78

89
import { IProduct } from './product';
910

APM - Final/package.json

Lines changed: 13 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
"author": "Deborah Kurata",
55
"description": "Package for the Acme Product Management sample application",
66
"scripts": {
7-
"start": "concurrently \"npm run tsc:w\" \"npm run lite\" ",
7+
"start": "tsc && concurrently \"tsc -w\" \"lite-server\" ",
88
"tsc": "tsc",
99
"tsc:w": "tsc -w",
1010
"lint": "tslint ./app/**/*.ts -t verbose",
@@ -14,20 +14,20 @@
1414
},
1515
"license": "ISC",
1616
"dependencies": {
17-
"@angular/common": "2.0.0-rc.5",
18-
"@angular/compiler": "2.0.0-rc.5",
19-
"@angular/core": "2.0.0-rc.5",
20-
"@angular/forms": "0.3.0",
21-
"@angular/http": "2.0.0-rc.5",
22-
"@angular/platform-browser": "2.0.0-rc.5",
23-
"@angular/platform-browser-dynamic": "2.0.0-rc.5",
24-
"@angular/router": "3.0.0-rc.1",
17+
"@angular/common": "2.0.0-rc.6",
18+
"@angular/compiler": "2.0.0-rc.6",
19+
"@angular/core": "2.0.0-rc.6",
20+
"@angular/forms": "2.0.0-rc.6",
21+
"@angular/http": "2.0.0-rc.6",
22+
"@angular/platform-browser": "2.0.0-rc.6",
23+
"@angular/platform-browser-dynamic": "2.0.0-rc.6",
24+
"@angular/router": "3.0.0-rc.2",
2525

26-
"systemjs": "0.19.27",
27-
"core-js": "^2.4.0",
26+
"core-js": "^2.4.1",
2827
"reflect-metadata": "^0.1.3",
29-
"rxjs": "5.0.0-beta.6",
30-
"zone.js": "^0.6.12",
28+
"rxjs": "5.0.0-beta.11",
29+
"systemjs": "0.19.27",
30+
"zone.js": "^0.6.17",
3131

3232
"bootstrap": "^3.3.6"
3333
},

APM - Final/systemjs.config.js

Lines changed: 32 additions & 28 deletions
Original file line numberDiff line numberDiff line change
@@ -2,36 +2,40 @@
22
* System configuration for Angular 2 samples
33
* Adjust as necessary for your application needs.
44
*/
5-
(function(global) {
5+
(function (global) {
6+
System.config({
7+
paths: {
8+
// paths serve as alias
9+
'npm:': 'node_modules/'
10+
},
11+
// map tells the System loader where to look for things
12+
map: {
13+
// our app is within the app folder
14+
app: 'app',
615

7-
// map tells the System loader where to look for things
8-
var map = {
9-
'app': 'app',
10-
'@angular': 'node_modules/@angular',
11-
'rxjs': 'node_modules/rxjs'
12-
};
13-
14-
// packages tells the System loader how to load when no filename and/or no extension
15-
var packages = {
16-
'app': { main: 'main.js', defaultExtension: 'js' },
17-
'rxjs': { defaultExtension: 'js' }
18-
};
19-
20-
var packageNames = [
21-
'@angular/common',
22-
'@angular/compiler',
23-
'@angular/core',
24-
'@angular/forms',
25-
'@angular/http',
26-
'@angular/platform-browser',
27-
'@angular/platform-browser-dynamic',
28-
'@angular/router'
29-
];
16+
// angular bundles
17+
'@angular/core': 'npm:@angular/core/bundles/core.umd.js',
18+
'@angular/common': 'npm:@angular/common/bundles/common.umd.js',
19+
'@angular/compiler': 'npm:@angular/compiler/bundles/compiler.umd.js',
20+
'@angular/platform-browser': 'npm:@angular/platform-browser/bundles/platform-browser.umd.js',
21+
'@angular/platform-browser-dynamic': 'npm:@angular/platform-browser-dynamic/bundles/platform-browser-dynamic.umd.js',
22+
'@angular/http': 'npm:@angular/http/bundles/http.umd.js',
23+
'@angular/router': 'npm:@angular/router/bundles/router.umd.js',
24+
'@angular/forms': 'npm:@angular/forms/bundles/forms.umd.js',
3025

31-
// add package entries for angular packages in the form
32-
// '@angular/common': { main: 'index.js', defaultExtension: 'js' }
33-
packageNames.forEach(function(pkgName) {
34-
packages[pkgName] = { main: 'index.js', defaultExtension: 'js' };
26+
// other libraries
27+
'rxjs': 'npm:rxjs'
28+
},
29+
// packages tells the System loader how to load when no filename and/or no extension
30+
packages: {
31+
app: {
32+
main: './main.js',
33+
defaultExtension: 'js'
34+
},
35+
rxjs: {
36+
defaultExtension: 'js'
37+
}
38+
}
3539
});
3640

3741
var config = {

0 commit comments

Comments
 (0)