Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- import { Routes } from '@angular/router';
- import { RecordsComponent } from './records/records.component';
- import { HomeComponent } from './home/home.component';
- export const APP_ROUTES: Routes = [
- { path: 'home', component: HomeComponent },
- { path: '', redirectTo: 'home', pathMatch: 'full' },
- { path: 'records/:with-error', component: RecordsComponent},
- { path: '**', redirectTo: 'home' }
- ];
Add Comment
Please, Sign In to add comment