/** * System configuration for Angular samples * Adjust as necessary for your application needs. */ (function (global) { var ANGULAR_LIBS = ['core', 'http', 'common', 'compiler', 'material', 'flex-layout', 'animations', // 'router', 'forms', 'platform-browser', 'platform-browser-dynamic', 'common']; var COVALENT_LIBS = ['core', 'http', 'dynamic-forms']; var mapping = { // our app is within the app folder main: 'src/main.js', 'app': 'src/app', 'environments': 'src/environments', '@angular/animations/browser': 'npm:@angular/animations/bundles/animations-browser.umd.js', '@angular/platform-browser/animations': 'npm:@angular/platform-browser/bundles/platform-browser-animations.umd.js', // other libraries 'rxjs': 'npm:rxjs', 'core-js': 'npm:core-js', 'zone.js': 'npm:zone.js', 'ng2-toastr': 'npm:ng2-toastr', 'file-saver': 'npm:file-saver/FileSaver.js', 'angular-2-local-storage': 'npm:angular-2-local-storage/dist', 'angular-in-memory-web-api': 'npm:angular-in-memory-web-api/bundles/in-memory-web-api.umd.js' } ANGULAR_LIBS.forEach(function (libName) { mapping['@angular/' + libName] = 'npm:@angular/' + libName + '/bundles/' + libName + '.umd.js'; }); COVALENT_LIBS.forEach(function (libName) { mapping['@covalent/' + libName] = 'npm:@covalent/' + libName + '/' + libName + '.umd.js'; }); System.config({ paths: { // paths serve as alias 'npm:': 'node_modules/', }, map: mapping, packages: { 'environments': { defaultExtension: 'js' }, 'app': { defaultExtension: 'js' }, 'rxjs': { main: 'index' }, "core-js": { "defaultExtension": "js" }, "zone.js": { "defaultExtension": "js" }, 'ng2-toastr': { defaultExtension: 'js' } } }); })(this);