45 lines
		
	
	
		
			1.5 KiB
		
	
	
	
		
			HTML
		
	
	
	
	
	
		
		
			
		
	
	
			45 lines
		
	
	
		
			1.5 KiB
		
	
	
	
		
			HTML
		
	
	
	
	
	
|  | <!DOCTYPE html> | ||
|  | <html> | ||
|  |   <head> | ||
|  |     <base href="/"> | ||
|  |     <title>Dependency Injection</title> | ||
|  |     <meta name="viewport" content="width=device-width, initial-scale=1"> | ||
|  |     <!-- #docregion style --> | ||
|  |     <link rel="stylesheet" href="styles.css"> | ||
|  |     <link rel="stylesheet" href="sample.css"> | ||
|  |     <!-- #enddocregion style --> | ||
|  | 
 | ||
|  |     <!-- IE required polyfills, in this exact order --> | ||
|  |     <script src="node_modules/es6-shim/es6-shim.min.js"></script> | ||
|  |     <script src="node_modules/systemjs/dist/system-polyfills.js"></script> | ||
|  |     <script src="node_modules/angular2/es6/dev/src/testing/shims_for_IE.js"></script> | ||
|  | 
 | ||
|  |     <script src="node_modules/angular2/bundles/angular2-polyfills.js"></script> | ||
|  |     <script src="node_modules/systemjs/dist/system.src.js"></script> | ||
|  |     <script src="node_modules/rxjs/bundles/Rx.js"></script> | ||
|  |     <script src="node_modules/angular2/bundles/angular2.dev.js"></script> | ||
|  | 
 | ||
|  |     <!-- Additional modules: router, http, in-mem-web-api --> | ||
|  |     <script src="node_modules/angular2/bundles/router.dev.js"></script> | ||
|  |     <script src="node_modules/angular2/bundles/http.dev.js"></script> | ||
|  |     <script src="node_modules/a2-in-memory-web-api/web-api.js"></script> | ||
|  |     <script> | ||
|  |       System.config({ | ||
|  |         packages: { | ||
|  |           app: { | ||
|  |             format: 'register', | ||
|  |             defaultExtension: 'js' | ||
|  |           } | ||
|  |         } | ||
|  |       }); | ||
|  |       System.import('app/main') | ||
|  |             .then(null, console.error.bind(console)); | ||
|  |     </script> | ||
|  |   </head> | ||
|  | 
 | ||
|  |   <body> | ||
|  |     <my-app>Loading app...</my-app> | ||
|  |   </body> | ||
|  | 
 | ||
|  | </html> |