16 lines
		
	
	
		
			300 B
		
	
	
	
		
			TypeScript
		
	
	
	
	
	
		
		
			
		
	
	
			16 lines
		
	
	
		
			300 B
		
	
	
	
		
			TypeScript
		
	
	
	
	
	
|  | // #docregion
 | ||
|  | import { Component } from '@angular/core'; | ||
|  | 
 | ||
|  | @Component({ | ||
|  |   selector: 'my-app', | ||
|  |   // #docregion template
 | ||
|  |   template: `
 | ||
|  |     <app-title [subtitle]="subtitle"></app-title> | ||
|  |     <app-contact></app-contact> | ||
|  |   `
 | ||
|  |   // #enddocregion template
 | ||
|  | }) | ||
|  | export class AppComponent { | ||
|  |   subtitle = '(v1)'; | ||
|  | } |