| 
									
										
										
										
											2016-06-09 13:00:26 -05:00
										 |  |  | // #docplaster
 | 
					
						
							|  |  |  | // #docregion
 | 
					
						
							| 
									
										
										
										
											2016-08-14 13:54:33 -05:00
										 |  |  | import { ModuleWithProviders } from '@angular/core'; | 
					
						
							| 
									
										
										
										
											2016-06-09 13:00:26 -05:00
										 |  |  | // #docregion route-config
 | 
					
						
							| 
									
										
										
										
											2016-08-09 17:38:25 +01:00
										 |  |  | import { Routes, RouterModule } from '@angular/router'; | 
					
						
							| 
									
										
										
										
											2016-06-09 13:00:26 -05:00
										 |  |  | 
 | 
					
						
							|  |  |  | // #enddocregion route-config
 | 
					
						
							|  |  |  | import { CrisisListComponent }  from './crisis-list.component'; | 
					
						
							|  |  |  | import { HeroListComponent }    from './hero-list.component'; | 
					
						
							|  |  |  | 
 | 
					
						
							|  |  |  | // #docregion route-config
 | 
					
						
							| 
									
										
										
										
											2016-08-09 17:38:25 +01:00
										 |  |  | const appRoutes: Routes = [ | 
					
						
							| 
									
										
										
										
											2016-06-17 22:55:36 -04:00
										 |  |  |   { path: 'crisis-center', component: CrisisListComponent }, | 
					
						
							|  |  |  |   { path: 'heroes', component: HeroListComponent } | 
					
						
							| 
									
										
										
										
											2016-06-09 13:00:26 -05:00
										 |  |  | ]; | 
					
						
							|  |  |  | 
 | 
					
						
							| 
									
										
										
										
											2016-08-09 17:38:25 +01:00
										 |  |  | export const appRoutingProviders: any[] = [ | 
					
						
							|  |  |  | 
 | 
					
						
							| 
									
										
										
										
											2016-06-09 13:00:26 -05:00
										 |  |  | ]; | 
					
						
							| 
									
										
										
										
											2016-08-09 17:38:25 +01:00
										 |  |  | 
 | 
					
						
							| 
									
										
										
										
											2016-08-14 13:54:33 -05:00
										 |  |  | export const routing: ModuleWithProviders = RouterModule.forRoot(appRoutes); | 
					
						
							| 
									
										
										
										
											2016-06-09 13:00:26 -05:00
										 |  |  | // #enddocregion route-config
 |