| 
									
										
										
										
											2016-08-09 17:38:25 +01:00
										 |  |  | // #docregion
 | 
					
						
							|  |  |  | import { BrowserModule }                from '@angular/platform-browser'; | 
					
						
							|  |  |  | import { FormsModule }                  from '@angular/forms'; | 
					
						
							| 
									
										
										
										
											2016-08-19 04:23:55 -07:00
										 |  |  | import { HttpModule }                   from '@angular/http'; | 
					
						
							|  |  |  | 
 | 
					
						
							|  |  |  | /* import { routing }                   from './app.routing';*/ | 
					
						
							| 
									
										
										
										
											2016-08-09 17:38:25 +01:00
										 |  |  | import { LocationStrategy, | 
					
						
							|  |  |  |          HashLocationStrategy }         from '@angular/common'; | 
					
						
							|  |  |  | import { NgModule }                     from '@angular/core'; | 
					
						
							|  |  |  | 
 | 
					
						
							|  |  |  | import { HeroData }                     from './hero-data'; | 
					
						
							| 
									
										
										
										
											2016-08-19 04:23:55 -07:00
										 |  |  | import { InMemoryWebApiModule }         from 'angular2-in-memory-web-api'; | 
					
						
							|  |  |  | 
 | 
					
						
							| 
									
										
										
										
											2016-08-09 17:38:25 +01:00
										 |  |  | 
 | 
					
						
							|  |  |  | import { AppComponent }                 from './app.component'; | 
					
						
							|  |  |  | import { HeroBioComponent }             from './hero-bio.component'; | 
					
						
							|  |  |  | import { HeroBiosComponent, | 
					
						
							|  |  |  |          HeroBiosAndContactsComponent } from './hero-bios.component'; | 
					
						
							|  |  |  | import { HeroOfTheMonthComponent }      from './hero-of-the-month.component'; | 
					
						
							|  |  |  | import { HeroContactComponent }         from './hero-contact.component'; | 
					
						
							|  |  |  | import { HeroesBaseComponent, | 
					
						
							|  |  |  |          SortedHeroesComponent }        from './sorted-heroes.component'; | 
					
						
							|  |  |  | import { HighlightDirective }           from './highlight.directive'; | 
					
						
							|  |  |  | import { ParentFinderComponent, | 
					
						
							|  |  |  |          AlexComponent, | 
					
						
							|  |  |  |          AliceComponent, | 
					
						
							|  |  |  |          CarolComponent, | 
					
						
							|  |  |  |          ChrisComponent, | 
					
						
							|  |  |  |          CraigComponent, | 
					
						
							|  |  |  |          CathyComponent, | 
					
						
							|  |  |  |          BarryComponent, | 
					
						
							|  |  |  |          BethComponent, | 
					
						
							|  |  |  |          BobComponent }                 from './parent-finder.component'; | 
					
						
							|  |  |  | 
 | 
					
						
							| 
									
										
										
										
											2016-08-19 04:23:55 -07:00
										 |  |  | const declarations = [ | 
					
						
							|  |  |  |     AppComponent, | 
					
						
							| 
									
										
										
										
											2016-08-09 17:38:25 +01:00
										 |  |  |     HeroBiosComponent, HeroBiosAndContactsComponent, HeroBioComponent, | 
					
						
							|  |  |  |     HeroesBaseComponent, SortedHeroesComponent, | 
					
						
							|  |  |  |     HeroOfTheMonthComponent, HeroContactComponent, | 
					
						
							|  |  |  |     HighlightDirective, | 
					
						
							|  |  |  |     ParentFinderComponent, | 
					
						
							|  |  |  | ]; | 
					
						
							|  |  |  | 
 | 
					
						
							| 
									
										
										
										
											2016-08-19 04:23:55 -07:00
										 |  |  | const a_components = [AliceComponent, AlexComponent ]; | 
					
						
							|  |  |  | 
 | 
					
						
							|  |  |  | const b_components = [ BarryComponent, BethComponent, BobComponent ]; | 
					
						
							| 
									
										
										
										
											2016-08-09 17:38:25 +01:00
										 |  |  | 
 | 
					
						
							| 
									
										
										
										
											2016-08-19 04:23:55 -07:00
										 |  |  | const c_components = [ | 
					
						
							| 
									
										
										
										
											2016-08-09 17:38:25 +01:00
										 |  |  |   CarolComponent, ChrisComponent, CraigComponent, | 
					
						
							|  |  |  |   CathyComponent | 
					
						
							|  |  |  | ]; | 
					
						
							|  |  |  | 
 | 
					
						
							|  |  |  | @NgModule({ | 
					
						
							| 
									
										
										
										
											2016-08-14 13:54:33 -05:00
										 |  |  |   imports: [ | 
					
						
							|  |  |  |     BrowserModule, | 
					
						
							|  |  |  |     FormsModule, | 
					
						
							| 
									
										
										
										
											2016-08-19 04:23:55 -07:00
										 |  |  |     HttpModule, | 
					
						
							|  |  |  |     InMemoryWebApiModule.forRoot(HeroData) | 
					
						
							| 
									
										
										
										
											2016-08-14 13:54:33 -05:00
										 |  |  |     // routing TODO: add routes
 | 
					
						
							|  |  |  |   ], | 
					
						
							| 
									
										
										
										
											2016-08-19 04:23:55 -07:00
										 |  |  |   declarations: [ | 
					
						
							|  |  |  |     declarations, | 
					
						
							|  |  |  |     a_components, | 
					
						
							|  |  |  |     b_components, | 
					
						
							|  |  |  |     c_components, | 
					
						
							|  |  |  |   ], | 
					
						
							| 
									
										
										
										
											2016-08-09 17:38:25 +01:00
										 |  |  |   bootstrap: [ AppComponent ], | 
					
						
							| 
									
										
										
										
											2016-08-19 04:23:55 -07:00
										 |  |  |   // #docregion providers
 | 
					
						
							| 
									
										
										
										
											2016-08-09 17:38:25 +01:00
										 |  |  |   providers: [ | 
					
						
							| 
									
										
										
										
											2016-08-19 04:23:55 -07:00
										 |  |  |     { provide: LocationStrategy, useClass: HashLocationStrategy } | 
					
						
							| 
									
										
										
										
											2016-08-09 17:38:25 +01:00
										 |  |  |   ] | 
					
						
							| 
									
										
										
										
											2016-08-19 04:23:55 -07:00
										 |  |  |   // #enddocregion providers
 | 
					
						
							| 
									
										
										
										
											2016-08-09 17:38:25 +01:00
										 |  |  | }) | 
					
						
							| 
									
										
										
										
											2016-08-19 04:23:55 -07:00
										 |  |  | export class AppModule { } |