| 
									
										
										
										
											2016-06-23 09:47:54 -07:00
										 |  |  | /** | 
					
						
							|  |  |  |  * @license | 
					
						
							|  |  |  |  * Copyright Google Inc. All Rights Reserved. | 
					
						
							|  |  |  |  * | 
					
						
							|  |  |  |  * Use of this source code is governed by an MIT-style license that can be | 
					
						
							|  |  |  |  * found in the LICENSE file at https://angular.io/license
 | 
					
						
							|  |  |  |  */ | 
					
						
							|  |  |  | 
 | 
					
						
							| 
									
										
										
										
											2016-08-16 11:15:01 -07:00
										 |  |  | import {Component, NgModule} from '@angular/core'; | 
					
						
							|  |  |  | import {BrowserModule} from '@angular/platform-browser'; | 
					
						
							|  |  |  | import {platformBrowserDynamic} from '@angular/platform-browser-dynamic'; | 
					
						
							| 
									
										
										
										
											2015-11-30 08:28:54 -08:00
										 |  |  | 
 | 
					
						
							|  |  |  | // #docregion bootstrap
 | 
					
						
							|  |  |  | @Component({selector: 'my-app', template: 'Hello {{ name }}!'}) | 
					
						
							|  |  |  | class MyApp { | 
					
						
							|  |  |  |   name: string = 'World'; | 
					
						
							|  |  |  | } | 
					
						
							|  |  |  | 
 | 
					
						
							| 
									
										
										
										
											2016-08-16 11:15:01 -07:00
										 |  |  | @NgModule({imports: [BrowserModule], bootstrap: [MyApp]}) | 
					
						
							|  |  |  | class AppModule { | 
					
						
							| 
									
										
										
										
											2015-11-30 08:28:54 -08:00
										 |  |  | } | 
					
						
							| 
									
										
										
										
											2016-08-16 11:15:01 -07:00
										 |  |  | 
 | 
					
						
							|  |  |  | export function main() { | 
					
						
							|  |  |  |   platformBrowserDynamic().bootstrapModule(AppModule); | 
					
						
							|  |  |  | } | 
					
						
							|  |  |  | 
 | 
					
						
							| 
									
										
										
										
											2015-11-30 08:28:54 -08:00
										 |  |  | // #enddocregion
 |