35 lines
		
	
	
		
			976 B
		
	
	
	
		
			HTML
		
	
	
	
	
	
		
		
			
		
	
	
			35 lines
		
	
	
		
			976 B
		
	
	
	
		
			HTML
		
	
	
	
	
	
|  | <!-- #docregion --> | ||
|  | <!DOCTYPE html> | ||
|  | <html> | ||
|  | 
 | ||
|  | <head> | ||
|  |   <title>Dependency Injection</title> | ||
|  |     <!-- 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/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> | ||
|  |     <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 my-app ...</my-app> | ||
|  |     <my-providers>Loading my-providers ...</my-providers> | ||
|  |   </body> | ||
|  | 
 | ||
|  | </html> |