16 lines
		
	
	
		
			396 B
		
	
	
	
		
			TypeScript
		
	
	
	
	
	
			
		
		
	
	
			16 lines
		
	
	
		
			396 B
		
	
	
	
		
			TypeScript
		
	
	
	
	
	
| /* tslint:disable:component-class-suffix */
 | |
| // #docregion imports
 | |
| import { Component }              from '@angular/core';
 | |
| import { FormControl }            from '@angular/forms';
 | |
| // #enddocregion
 | |
| 
 | |
| @Component({
 | |
|   moduleId: module.id,
 | |
|   selector: 'hero-detail-1',
 | |
|   templateUrl: './hero-detail-1.component.html'
 | |
| })
 | |
| // #docregion v1
 | |
| export class HeroDetailComponent1 {
 | |
|   name = new FormControl();
 | |
| }
 |