25 lines
		
	
	
		
			549 B
		
	
	
	
		
			TypeScript
		
	
	
	
	
	
			
		
		
	
	
			25 lines
		
	
	
		
			549 B
		
	
	
	
		
			TypeScript
		
	
	
	
	
	
| // #docplaster more code here
 | |
| // #docregion import,twoparts
 | |
| import {Component, View, bootstrap} from 'angular2/angular2';
 | |
| // #enddocregion twoparts,  import
 | |
| 
 | |
| @Component({
 | |
|   selector: 'my-app'
 | |
| })
 | |
| @View({
 | |
|   template: '<h1 id="output">My first Angular 2 App</h1>'
 | |
| })
 | |
| class AppComponent {
 | |
| }
 | |
| 
 | |
| // #docregion twoparts
 | |
|    // indented comment
 | |
|    var x = 3;
 | |
|    // plaster should go immediately under here.
 | |
| // #enddocregion
 | |
| // #docregion bootstrap, twoparts
 | |
| bootstrap(AppComponent);
 | |
| // #enddocregion twoparts
 | |
| // to be included in bootstrap...
 | |
| // #enddocregion
 |