Guest User

Untitled

a guest
Feb 22nd, 2018
93
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.72 KB | None | 0 0
  1. /**
  2. * System configuration for Angular samples
  3. * Adjust as necessary for your application needs.
  4. */
  5. (function (global) {
  6. System.config({
  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': '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': 'npm:@angular/platform-browser-dynamic/bundles/platform-browser-dynamic.umd.js',
  22. '@angular/http': 'npm:@angular/http/bundles/http.umd.js',
  23. '@angular/router': 'npm:@angular/router/bundles/router.umd.js',
  24. '@angular/forms': 'npm:@angular/forms/bundles/forms.umd.js',
  25. '@angular/common/http': 'npm:@angular/common/bundles/common-http.umd.js',
  26. 'tslib': 'npm:tslib/tslib.js',
  27. '@angular/animations': 'npm:@angular/animations/bundles/animations.umd.js',
  28. '@angular/animations/browser': 'npm:@angular/animations/bundles/animations-browser.umd.js',
  29. '@angular/platform-browser/animations': 'npm:@angular/platform-browser/bundles/platform-browser-animations.umd.js',
  30.  
  31.  
  32. // other libraries
  33. 'rxjs': 'npm:rxjs',
  34. },
  35. // packages tells the System loader how to load when no filename and/or no extension
  36. packages: {
  37. app: {
  38. defaultExtension: 'js',
  39. },
  40. rxjs: {
  41. defaultExtension: 'js'
  42. }
  43. }
  44. });
  45. })(this);
Add Comment
Please, Sign In to add comment