24 lines
		
	
	
		
			624 B
		
	
	
	
		
			TypeScript
		
	
	
	
	
	
		
		
			
		
	
	
			24 lines
		
	
	
		
			624 B
		
	
	
	
		
			TypeScript
		
	
	
	
	
	
| 
								 | 
							
								import { NgModule } from '@angular/core';
							 | 
						||
| 
								 | 
							
								import { BrowserModule }  from '@angular/platform-browser';
							 | 
						||
| 
								 | 
							
								import { FormsModule } from '@angular/forms';
							 | 
						||
| 
								 | 
							
								
							 | 
						||
| 
								 | 
							
								import { AppComponent } from './app.component';
							 | 
						||
| 
								 | 
							
								import { BigHeroDetailComponent, HeroDetailComponent } from './hero-detail.component';
							 | 
						||
| 
								 | 
							
								import { MyClickDirective, MyClickDirective2 } from './my-click.directive';
							 | 
						||
| 
								 | 
							
								
							 | 
						||
| 
								 | 
							
								@NgModule({
							 | 
						||
| 
								 | 
							
								  imports: [
							 | 
						||
| 
								 | 
							
								    BrowserModule,
							 | 
						||
| 
								 | 
							
								    FormsModule
							 | 
						||
| 
								 | 
							
								  ],
							 | 
						||
| 
								 | 
							
								  declarations: [
							 | 
						||
| 
								 | 
							
								    AppComponent,
							 | 
						||
| 
								 | 
							
								    BigHeroDetailComponent,
							 | 
						||
| 
								 | 
							
								    HeroDetailComponent,
							 | 
						||
| 
								 | 
							
								    MyClickDirective,
							 | 
						||
| 
								 | 
							
								    MyClickDirective2
							 | 
						||
| 
								 | 
							
								  ],
							 | 
						||
| 
								 | 
							
								  bootstrap: [ AppComponent ]
							 | 
						||
| 
								 | 
							
								})
							 | 
						||
| 
								 | 
							
								export class AppModule { }
							 |