/**
* System configuration for Angular 2 samples
* Adjust as necessary for your application needs.
*/
(function (global) {
var packages = {
app: {
main: './main.js',
defaultExtension: 'js'
},
rxjs: {
defaultExtension: 'js'
},
'angular2-in-memory-web-api': {
main: './index.js',
defaultExtension: 'js'
}
};
['core',
'common',
'compiler',
'forms',
'http',
'platform-browser',
'platform-browser-dynamic',
'router'
].forEach(function (name) {
packages['@angular/' + name] = { main: 'index.js' };
});
['core',
'button',
'menu',
'icon'
].forEach(function (name) {
packages['@angular2-material/' + name] = { main: 'index.js' };
});
System.config({
transpiler: 'typescript',
// paths serve as alias
paths: {
'npm:': 'node_modules/'
},
map: {
'app': 'app',
'@angular': 'npm:@angular',
'rxjs': 'npm:rxjs',
'typescript': 'npm:typescript/lib/typescript.js',
'@angular2-material/core': 'npm:@angular2-material/core',
'@angular2-material/button': 'npm:@angular2-material/button',
'@angular2-material/menu': 'npm:@angular2-material/menu',
'@angular2-material/icon': 'npm:@angular2-material/icon',
},
packages: packages
});
})(this);
Last active
September 24, 2016 15:42
-
-
Save alexzuza/faf709f877c9adcc5e68ae6efbea403b to your computer and use it in GitHub Desktop.
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment