| 
									
										
										
										
											2016-08-09 17:38:25 +01:00
										 |  |  | // #docplaster
 | 
					
						
							|  |  |  | // #docregion
 | 
					
						
							|  |  |  | import { NgModule }       from '@angular/core'; | 
					
						
							|  |  |  | import { BrowserModule }  from '@angular/platform-browser'; | 
					
						
							|  |  |  | import { FormsModule }    from '@angular/forms'; | 
					
						
							| 
									
										
										
										
											2016-10-05 16:59:09 -05:00
										 |  |  | // #docregion import-router, route-config
 | 
					
						
							|  |  |  | import { RouterModule }   from '@angular/router'; | 
					
						
							|  |  |  | // #enddocregion import-router, route-config
 | 
					
						
							| 
									
										
										
										
											2016-08-09 17:38:25 +01:00
										 |  |  | 
 | 
					
						
							|  |  |  | // #docregion router-basics
 | 
					
						
							| 
									
										
										
										
											2016-08-26 23:19:27 -05:00
										 |  |  | import { AppComponent }         from './app.component'; | 
					
						
							| 
									
										
										
										
											2016-08-09 17:38:25 +01:00
										 |  |  | import { CrisisListComponent }  from './crisis-list.component'; | 
					
						
							| 
									
										
										
										
											2016-10-05 16:59:09 -05:00
										 |  |  | import { HeroListComponent }    from './hero-list.component'; | 
					
						
							| 
									
										
										
										
											2016-08-09 17:38:25 +01:00
										 |  |  | 
 | 
					
						
							|  |  |  | @NgModule({ | 
					
						
							|  |  |  |   imports: [ | 
					
						
							|  |  |  |     BrowserModule, | 
					
						
							|  |  |  |     FormsModule, | 
					
						
							| 
									
										
										
										
											2016-10-05 16:59:09 -05:00
										 |  |  |     // #docregion route-config
 | 
					
						
							|  |  |  |     RouterModule.forRoot([ | 
					
						
							|  |  |  |       { path: 'crisis-center', component: CrisisListComponent }, | 
					
						
							|  |  |  |       { path: 'heroes', component: HeroListComponent } | 
					
						
							|  |  |  |     ]) | 
					
						
							|  |  |  |     // #enddocregion route-config
 | 
					
						
							| 
									
										
										
										
											2016-08-09 17:38:25 +01:00
										 |  |  |   ], | 
					
						
							|  |  |  |   declarations: [ | 
					
						
							|  |  |  |     AppComponent, | 
					
						
							|  |  |  |     HeroListComponent, | 
					
						
							|  |  |  |     CrisisListComponent | 
					
						
							|  |  |  |   ], | 
					
						
							|  |  |  |   bootstrap: [ AppComponent ] | 
					
						
							|  |  |  | }) | 
					
						
							|  |  |  | // #enddocregion router-basics
 | 
					
						
							|  |  |  | export class AppModule { | 
					
						
							|  |  |  | } | 
					
						
							|  |  |  | // #enddocregion
 |