| 
									
										
										
										
											2016-06-08 01:06:25 +02:00
										 |  |  | declare var angular: any; | 
					
						
							| 
									
										
										
										
											2016-09-27 09:22:38 +01:00
										 |  |  | // #docregion ngmodule
 | 
					
						
							|  |  |  | import { NgModule } from '@angular/core'; | 
					
						
							|  |  |  | import { BrowserModule } from '@angular/platform-browser'; | 
					
						
							|  |  |  | 
 | 
					
						
							|  |  |  | @NgModule({ | 
					
						
							|  |  |  |   imports: [ BrowserModule ] | 
					
						
							|  |  |  | }) | 
					
						
							|  |  |  | export class AppModule {} | 
					
						
							|  |  |  | // #enddocregion ngmodule
 | 
					
						
							|  |  |  | angular.module('heroApp', []) | 
					
						
							|  |  |  |   .controller('MainCtrl', function() { | 
					
						
							|  |  |  |     this.message = 'Hello world'; | 
					
						
							|  |  |  |   }); | 
					
						
							|  |  |  | 
 | 
					
						
							| 
									
										
										
										
											2015-12-31 08:46:32 +02:00
										 |  |  | 
 | 
					
						
							|  |  |  | // #docregion bootstrap
 | 
					
						
							| 
									
										
										
										
											2016-05-03 14:06:32 +02:00
										 |  |  | import { UpgradeAdapter } from '@angular/upgrade'; | 
					
						
							| 
									
										
										
										
											2015-12-31 08:46:32 +02:00
										 |  |  | 
 | 
					
						
							|  |  |  | // #enddocregion bootstrap
 | 
					
						
							|  |  |  | 
 | 
					
						
							| 
									
										
										
										
											2016-09-27 09:22:38 +01:00
										 |  |  | // This blank is expected to trigger the docplaster
 | 
					
						
							| 
									
										
										
										
											2015-12-31 08:46:32 +02:00
										 |  |  | 
 | 
					
						
							|  |  |  | // #docregion bootstrap
 | 
					
						
							|  |  |  | 
 | 
					
						
							| 
									
										
										
										
											2016-09-27 09:22:38 +01:00
										 |  |  | const upgradeAdapter = new UpgradeAdapter(AppModule); | 
					
						
							| 
									
										
										
										
											2015-12-31 08:46:32 +02:00
										 |  |  | 
 | 
					
						
							|  |  |  | upgradeAdapter.bootstrap(document.body, ['heroApp'], {strictDi: true}); | 
					
						
							|  |  |  | // #enddocregion bootstrap
 |