| 
									
										
										
										
											2015-10-20 16:51:36 -07:00
										 |  |  | // no docplaster
 | 
					
						
							|  |  |  | // #docplaster
 | 
					
						
							|  |  |  | // #docregion import,twoparts
 | 
					
						
							|  |  |  | import {Component, View, bootstrap} from 'angular2/angular2'; | 
					
						
							|  |  |  | // #enddocregion twoparts,  import
 | 
					
						
							|  |  |  | 
 | 
					
						
							|  |  |  | @Component({ | 
					
						
							|  |  |  |   selector: 'my-app' | 
					
						
							|  |  |  | }) | 
					
						
							|  |  |  | @View({ | 
					
						
							| 
									
										
										
										
											2017-01-26 03:26:11 -08:00
										 |  |  |   template: '<h1 id="output">My first Angular App</h1>' | 
					
						
							| 
									
										
										
										
											2015-10-20 16:51:36 -07:00
										 |  |  | }) | 
					
						
							|  |  |  | class AppComponent { | 
					
						
							|  |  |  | } | 
					
						
							|  |  |  | 
 | 
					
						
							|  |  |  | // #docregion twoparts
 | 
					
						
							|  |  |  |    // indented comment
 | 
					
						
							|  |  |  |    var x = 3; | 
					
						
							|  |  |  | // #enddocregion
 | 
					
						
							|  |  |  | 
 | 
					
						
							|  |  |  | bootstrap(AppComponent); | 
					
						
							|  |  |  | // #docregion twoparts
 | 
					
						
							| 
									
										
										
										
											2017-01-26 03:26:11 -08:00
										 |  |  | // final comment
 | 
					
						
							| 
									
										
										
										
											2015-10-20 16:51:36 -07:00
										 |  |  | // #enddocregion twoparts
 | 
					
						
							|  |  |  | 
 | 
					
						
							|  |  |  | 
 |