26 lines
		
	
	
		
			554 B
		
	
	
	
		
			TypeScript
		
	
	
	
	
	
		
		
			
		
	
	
			26 lines
		
	
	
		
			554 B
		
	
	
	
		
			TypeScript
		
	
	
	
	
	
|  | // #docregion
 | ||
|  | import { NgModule }       from '@angular/core'; | ||
|  | import { CommonModule }   from '@angular/common'; | ||
|  | import { FormsModule }    from '@angular/forms'; | ||
|  | 
 | ||
|  | import { HeroListComponent }    from './hero-list.component'; | ||
|  | import { HeroDetailComponent }  from './hero-detail.component'; | ||
|  | 
 | ||
|  | import { HeroService } from './hero.service'; | ||
|  | 
 | ||
|  | @NgModule({ | ||
|  |   imports: [ | ||
|  |     CommonModule, | ||
|  |     FormsModule | ||
|  |   ], | ||
|  |   declarations: [ | ||
|  |     HeroListComponent, | ||
|  |     HeroDetailComponent | ||
|  |   ], | ||
|  |   providers: [ | ||
|  |     HeroService | ||
|  |   ] | ||
|  | }) | ||
|  | export class HeroesModule {} | ||
|  | // #enddocregion
 |