/**
 * System configuration for Angular 2 samples
 * Adjust as necessary for your application needs.
 */
(function(global) {
  // map tells the System loader where to look for things
  var map = {
    'app':                        'app', // 'dist',
    '@angular':                   'node_modules/@angular',
    'rxjs':                       'node_modules/rxjs'
  };
  // packages tells the System loader how to load when no filename and/or no extension
  var packages = {
    'app':                        { main: 'main.js',  defaultExtension: 'js' },
    'rxjs':                       { defaultExtension: 'js' },
  };
  var ngPackageNames = [
    'common',
    'compiler',
    'core',
    'forms',
    'http',
    'platform-browser',
    'platform-browser-dynamic',
    'router',
    'router-deprecated',
    'upgrade',
  ];
  // Individual files (~300 requests):
  function packIndex(pkgName) {
    packages['@angular/'+pkgName] = { main: 'index.js', defaultExtension: 'js' };
  }
  // Bundled (~40 requests):
  function packUmd(pkgName) {
    packages['@angular/'+pkgName] = { main: '/bundles/' + pkgName + '.umd.js', defaultExtension: 'js' };
  }
  // Most environments should use UMD; some (Karma) need the individual index files
  var setPackageConfig = System.packageWithIndex ? packIndex : packUmd;
  // Add package entries for angular packages
  ngPackageNames.forEach(setPackageConfig);
  var config = {
    map: map,
    packages: packages
  }
  System.config(config);
})(this);

@@ -37,18 +37,16 @@
 lar 
-2 
 samples%0A
  * A
@@ -41,16 +41,16 @@
 samples%0A
+
  * Adjus
@@ -105,16 +105,17 @@
 function
+ 
 (global)
@@ -123,222 +123,80 @@
 %7B%0A  
-// map tells the System loader where to look for things%0A  var map = %7B%0A    'app':                        'app', // 'dist',%0A    '@angular':                   'node_modules/@angular',%0A    'rxjs':                      
+System.config(%7B%0A    paths: %7B%0A      // paths serve as alias%0A      'npm:':
  'no
@@ -210,32 +210,27 @@
 les/
-rxjs'%0A  %7D;%0A
+'%0A    %7D,%0A 
   
+ 
 // 
-packages
+map
  tel
@@ -254,1081 +254,1161 @@
 der 
-how
+where
  to lo
-ad when no filename and/or no extension%0A  var packages = %7B
+ok for things
 %0A    
-'
+m
 ap
-p'
 : 
+%7B%0A
       
-                 %7B main: 'main.js
+// our app is within the app folder%0A      app: 'app
 ',
+%0A
   
-defaultExtension: 'js' %7D,%0A    'rxjs':                       %7B defaultExtension: '
+    // angular bundles%0A      '@angular/core': 'npm:@angular/core/bundles/core.umd.
 js'
- %7D
 ,%0A  
-%7D;%0A  var ngPackageNames = %5B%0A    'common',%0A    'compiler',%0A    'core
+    '@angular/common': 'npm:@angular/common/bundles/common.umd.js',%0A      '@angular/compiler': 'npm:@angular/compiler/bundles/compiler.umd.js
 ',%0A
+  
     '
-forms',%0A    'http',%0A    'platform-browser',%0A    'platform-browser-dynamic',%0A    'router',%0A    'router-deprecated',%0A    'upgrade',%0A  %5D;%0A  // Individual files (~300 requests):%0A  function packIndex(pkgName) %7B%0A    packages%5B'@angular/'+pkgName%5D = %7B main: 'index.js', defaultExtension: 'js' %7D;%0A  %7D%0A  // Bundled (~40 requests):%0A  function packUmd(pkgName) %7B%0A    packages%5B'@angular/'+pkgName%5D = %7B main: '/bundles/' + pkgName + '.umd.js', defaultExtension: 'js' %7D;%0A  %7D%0A  // Most environments should use UMD; some (Karma) need the individual index files%0A  var setPackageConfig = System.packageWithIndex ? packIndex : packUmd;%0A  // Add package entries for angular packages%0A  ngPackageNames.forEach(setPackageConfig);%0A  var config = %7B%0A    map: map,%0A    packages: packages%0A  %7D%0A  System.config(config
+@angular/platform-browser': 'npm:@angular/platform-browser/bundles/platform-browser.umd.js',%0A      '@angular/platform-browser-dynamic': 'npm:@angular/platform-browser-dynamic/bundles/platform-browser-dynamic.umd.js',%0A      '@angular/http': 'npm:@angular/http/bundles/http.umd.js',%0A      '@angular/router': 'npm:@angular/router/bundles/router.umd.js',%0A      '@angular/forms': 'npm:@angular/forms/bundles/forms.umd.js',%0A      // other libraries%0A      'rxjs':                       'npm:rxjs',%0A      'angular2-in-memory-web-api': 'npm:angular2-in-memory-web-api',%0A    %7D,%0A    // packages tells the System loader how to load when no filename and/or no extension%0A    packages: %7B%0A      app: %7B%0A        main: './main.js',%0A        defaultExtension: 'js'%0A      %7D,%0A      rxjs: %7B%0A        defaultExtension: 'js'%0A      %7D%0A    %7D%0A  %7D
 );%0A%7D

Use latest systemjs.config format