Skip to content

Instantly share code, notes, and snippets.

@webbushka
Created June 14, 2017 21:11
Show Gist options
  • Save webbushka/3e85986d2314f22a1b802f421b40acc6 to your computer and use it in GitHub Desktop.
Save webbushka/3e85986d2314f22a1b802f421b40acc6 to your computer and use it in GitHub Desktop.
Example of SystemJS + Angular
System.config({
transpiler: 'typescript',
typescriptOptions: { emitDecoratorMetadata: true },
map: {
'rxjs': 'https://unpkg.com/rxjs@5.0.0-beta.12',
'@angular/core': 'https://unpkg.com/@angular/core@2.0.0',
'@angular/common': 'https://unpkg.com/@angular/common@2.0.0',
'@angular/compiler': 'https://unpkg.com/@angular/compiler@2.0.0',
'@angular/platform-browser': 'https://unpkg.com/@angular/platform-browser@2.0.0',
'@angular/platform-browser-dynamic': 'https://unpkg.com/@angular/platform-browser-dynamic@2.0.0',
},
packages: {
'@angular/core': { main: 'index.js' },
'@angular/common': { main: 'index.js' },
'@angular/compiler': { main: 'index.js' },
'@angular/platform-browser': { main: 'index.js' },
'@angular/platform-browser-dynamic': { main: 'index.js' },
}
});
System.import('main.ts');
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment