| 
									
										
										
										
											2016-08-09 17:38:25 +01:00
										 |  |  | // #docregion
 | 
					
						
							|  |  |  | import { NgModule }       from '@angular/core'; | 
					
						
							|  |  |  | import { BrowserModule }  from '@angular/platform-browser'; | 
					
						
							|  |  |  | import { FormsModule }    from '@angular/forms'; | 
					
						
							|  |  |  | 
 | 
					
						
							| 
									
										
										
										
											2016-08-17 20:28:22 -05:00
										 |  |  | import { AppComponent }         from './app.component'; | 
					
						
							| 
									
										
										
										
											2016-08-09 17:38:25 +01:00
										 |  |  | import { DashboardComponent }   from './dashboard.component'; | 
					
						
							|  |  |  | import { HeroDetailComponent }  from './hero-detail.component'; | 
					
						
							| 
									
										
										
										
											2016-08-17 20:28:22 -05:00
										 |  |  | import { HeroesComponent }      from './heroes.component'; | 
					
						
							|  |  |  | import { HeroService }          from './hero.service'; | 
					
						
							| 
									
										
										
										
											2016-08-09 17:38:25 +01:00
										 |  |  | 
 | 
					
						
							| 
									
										
										
										
											2016-10-11 16:30:30 -07:00
										 |  |  | // #docregion routing-module
 | 
					
						
							|  |  |  | import { AppRoutingModule }     from './app-routing.module'; | 
					
						
							|  |  |  | 
 | 
					
						
							| 
									
										
										
										
											2016-08-09 17:38:25 +01:00
										 |  |  | @NgModule({ | 
					
						
							|  |  |  |   imports: [ | 
					
						
							|  |  |  |     BrowserModule, | 
					
						
							|  |  |  |     FormsModule, | 
					
						
							| 
									
										
										
										
											2016-10-11 16:30:30 -07:00
										 |  |  |     AppRoutingModule | 
					
						
							| 
									
										
										
										
											2016-08-09 17:38:25 +01:00
										 |  |  |   ], | 
					
						
							| 
									
										
										
										
											2016-10-11 16:30:30 -07:00
										 |  |  | // #enddocregion routing-module
 | 
					
						
							|  |  |  |   // #docregion dashboard
 | 
					
						
							| 
									
										
										
										
											2016-08-09 17:38:25 +01:00
										 |  |  |   declarations: [ | 
					
						
							|  |  |  |     AppComponent, | 
					
						
							|  |  |  |     DashboardComponent, | 
					
						
							| 
									
										
										
										
											2016-08-17 20:28:22 -05:00
										 |  |  |     HeroDetailComponent, | 
					
						
							|  |  |  |     HeroesComponent | 
					
						
							| 
									
										
										
										
											2016-08-09 17:38:25 +01:00
										 |  |  |   ], | 
					
						
							| 
									
										
										
										
											2016-10-11 16:30:30 -07:00
										 |  |  |   // #enddocregion dashboard
 | 
					
						
							|  |  |  |   providers: [ HeroService ], | 
					
						
							| 
									
										
										
										
											2016-08-09 17:38:25 +01:00
										 |  |  |   bootstrap: [ AppComponent ] | 
					
						
							| 
									
										
										
										
											2016-10-11 16:30:30 -07:00
										 |  |  | // #docregion routing-module
 | 
					
						
							| 
									
										
										
										
											2016-08-09 17:38:25 +01:00
										 |  |  | }) | 
					
						
							| 
									
										
										
										
											2016-10-11 16:30:30 -07:00
										 |  |  | export class AppModule { } | 
					
						
							|  |  |  | // #enddocregion routing-module
 |