* docs(router): chalin copyedits * docs(router): bell copy edits + routing module order & inspect config
		
			
				
	
	
		
			25 lines
		
	
	
		
			767 B
		
	
	
	
		
			TypeScript
		
	
	
	
	
	
			
		
		
	
	
			25 lines
		
	
	
		
			767 B
		
	
	
	
		
			TypeScript
		
	
	
	
	
	
// #docregion
 | 
						|
import { NgModule }              from '@angular/core';
 | 
						|
import { RouterModule, Routes }  from '@angular/router';
 | 
						|
 | 
						|
import { CrisisListComponent }   from './crisis-list.component';
 | 
						|
// import { HeroListComponent }  from './hero-list.component';  // <-- delete this line
 | 
						|
import { PageNotFoundComponent } from './not-found.component';
 | 
						|
 | 
						|
const appRoutes: Routes = [
 | 
						|
  { path: 'crisis-center', component: CrisisListComponent },
 | 
						|
  // { path: 'heroes',     component: HeroListComponent }, // <-- delete this line
 | 
						|
  { path: '',   redirectTo: '/heroes', pathMatch: 'full' },
 | 
						|
  { path: '**', component: PageNotFoundComponent }
 | 
						|
];
 | 
						|
 | 
						|
@NgModule({
 | 
						|
  imports: [
 | 
						|
    RouterModule.forRoot(appRoutes)
 | 
						|
  ],
 | 
						|
  exports: [
 | 
						|
    RouterModule
 | 
						|
  ]
 | 
						|
})
 | 
						|
export class AppRoutingModule {}
 |