commit | author | age
|
1284d6
|
1 |
/** |
G |
2 |
* System configuration for Angular samples |
|
3 |
* Adjust as necessary for your application needs. |
|
4 |
*/ |
|
5 |
(function (global) { |
|
6 |
var data = { |
|
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: '/Template/js/kpxl/app', |
|
15 |
|
|
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': |
|
22 |
'npm:@angular/platform-browser-dynamic/bundles/platform-browser-dynamic.umd.js', |
|
23 |
'@angular/http': 'npm:@angular/http/bundles/http.umd.js', |
|
24 |
'@angular/router': 'npm:@angular/router/bundles/router.umd.js', |
|
25 |
'@angular/forms': 'npm:@angular/forms/bundles/forms.umd.js', |
|
26 |
|
|
27 |
//Add these code mirror packages |
|
28 |
'ng2-codemirror': 'npm:ng2-codemirror', |
|
29 |
'ngx-cookie':'npm:ngx-cookie/bundles/ngx-cookie.umd.js', |
|
30 |
'codemirror': 'npm:codemirror', |
|
31 |
}, |
|
32 |
// packages tells the System loader how to load when no filename and/or no extension |
|
33 |
packages: { |
|
34 |
codemirror: { |
|
35 |
main: 'lib/codemirror.js', |
|
36 |
defaultExtension: 'js' |
|
37 |
} |
|
38 |
} |
|
39 |
}; |
|
40 |
data.packages['ng2-codemirror'] = { main: 'lib/index.js', defaultExtension: 'js' }; |
|
41 |
System.config(data); |
|
42 |
})(this); |