Moved all heroes functionality into milestone 2 Crisis Center initial functionality is milestone 3 Admin feature module as milestone 4 including route guard examples Updated milestone 5 to lazy load admin feature module Added examples for CanLoad, CanActivateChildren guard, component-less routes Added section on explanation of ActivatedRoute Added section on animating route components Added section on relative navigation
		
			
				
	
	
		
			17 lines
		
	
	
		
			442 B
		
	
	
	
		
			TypeScript
		
	
	
	
	
	
			
		
		
	
	
			17 lines
		
	
	
		
			442 B
		
	
	
	
		
			TypeScript
		
	
	
	
	
	
| // #docplaster
 | |
| // #docregion
 | |
| import { ModuleWithProviders }  from '@angular/core';
 | |
| import { Routes, RouterModule } from '@angular/router';
 | |
| 
 | |
| import { CrisisCenterComponent } from './crisis-center/crisis-center.component';
 | |
| 
 | |
| const appRoutes: Routes = [
 | |
|   { path: 'crisis-center', component: CrisisCenterComponent }
 | |
| ];
 | |
| 
 | |
| export const appRoutingProviders: any[] = [
 | |
| 
 | |
| ];
 | |
| 
 | |
| export const routing: ModuleWithProviders = RouterModule.forRoot(appRoutes);
 |