| 
									
										
										
										
											2016-11-12 16:06:02 +00:00
										 |  |  | declare var angular: angular.IAngularStatic; | 
					
						
							| 
									
										
										
										
											2016-09-27 09:22:38 +01:00
										 |  |  | // #docregion ngmodule
 | 
					
						
							|  |  |  | import { NgModule } from '@angular/core'; | 
					
						
							|  |  |  | import { BrowserModule } from '@angular/platform-browser'; | 
					
						
							| 
									
										
										
										
											2016-11-09 18:12:15 +00:00
										 |  |  | import { UpgradeModule } from '@angular/upgrade/static'; | 
					
						
							| 
									
										
										
										
											2016-09-27 09:22:38 +01:00
										 |  |  | 
 | 
					
						
							|  |  |  | @NgModule({ | 
					
						
							| 
									
										
										
										
											2016-11-09 18:12:15 +00:00
										 |  |  |   imports: [ | 
					
						
							|  |  |  |     BrowserModule, | 
					
						
							|  |  |  |     UpgradeModule | 
					
						
							|  |  |  |   ] | 
					
						
							| 
									
										
										
										
											2016-09-27 09:22:38 +01:00
										 |  |  | }) | 
					
						
							| 
									
										
										
										
											2016-11-09 18:12:15 +00:00
										 |  |  | export class AppModule { | 
					
						
							|  |  |  |   ngDoBootstrap() {} | 
					
						
							|  |  |  | } | 
					
						
							| 
									
										
										
										
											2016-09-27 09:22:38 +01:00
										 |  |  | // #enddocregion ngmodule
 | 
					
						
							|  |  |  | angular.module('heroApp', []) | 
					
						
							|  |  |  |   .controller('MainCtrl', function() { | 
					
						
							|  |  |  |     this.message = 'Hello world'; | 
					
						
							|  |  |  |   }); | 
					
						
							|  |  |  | 
 | 
					
						
							| 
									
										
										
										
											2015-12-31 08:46:32 +02:00
										 |  |  | // #docregion bootstrap
 | 
					
						
							| 
									
										
										
										
											2016-11-12 15:27:51 +00:00
										 |  |  | import { platformBrowserDynamic } from '@angular/platform-browser-dynamic'; | 
					
						
							|  |  |  | 
 | 
					
						
							| 
									
										
										
										
											2016-11-09 18:12:15 +00:00
										 |  |  | platformBrowserDynamic().bootstrapModule(AppModule).then(platformRef => { | 
					
						
							| 
									
										
										
										
											2016-11-14 19:02:54 +00:00
										 |  |  |   const upgrade = platformRef.injector.get(UpgradeModule) as UpgradeModule; | 
					
						
							| 
									
										
										
										
											2016-11-09 18:12:15 +00:00
										 |  |  |   upgrade.bootstrap(document.body, ['heroApp'], {strictDi: true}); | 
					
						
							|  |  |  | }); | 
					
						
							| 
									
										
										
										
											2015-12-31 08:46:32 +02:00
										 |  |  | // #enddocregion bootstrap
 |