UNPKG

1.72 kBJavaScriptView Raw
1(function (global) {
2 System.config({
3 defaultJSExtensions: true,
4 paths: {
5 // paths serve as alias
6 'npm:': 'node_modules/'
7 },
8 // map tells the System loader where to look for things
9 map: {
10 // our app is within the app folder
11 app: 'app',
12
13 // angular bundles
14 '@angular/core': 'npm:@angular/core/bundles/core.umd.js',
15 '@angular/common': 'npm:@angular/common/bundles/common.umd.js',
16 '@angular/compiler': 'npm:@angular/compiler/bundles/compiler.umd.js',
17 '@angular/platform-browser': 'npm:@angular/platform-browser/bundles/platform-browser.umd.js',
18 '@angular/platform-browser-dynamic': 'npm:@angular/platform-browser-dynamic/bundles/platform-browser-dynamic.umd.js',
19 '@angular/http': 'npm:@angular/http/bundles/http.umd.js',
20 '@angular/router': 'npm:@angular/router/bundles/router.umd.js',
21 '@angular/router/upgrade': 'npm:@angular/router/bundles/router-upgrade.umd.js',
22 '@angular/forms': 'npm:@angular/forms/bundles/forms.umd.js',
23 '@angular/upgrade': 'npm:@angular/upgrade/bundles/upgrade.umd.js',
24 '@angular/upgrade/static': 'npm:@angular/upgrade/bundles/upgrade-static.umd.js',
25
26 'angular-templation': 'npm:angular-templation/src/index.js',
27
28 'lodash': 'npm:lodash/lodash.js',
29 // other libraries
30 'rxjs': 'npm:rxjs',
31 'angular-in-memory-web-api': 'npm:angular-in-memory-web-api/bundles/in-memory-web-api.umd.js'
32 },
33 // packages tells the System loader how to load when no filename and/or no extension
34 packages: {
35 app: {
36 main: './main.js',
37 defaultExtension: 'js'
38 },
39 rxjs: {
40 defaultExtension: 'js'
41 }
42 }
43 });
44})(this);