Skip to content

Instantly share code, notes, and snippets.

@alexytiger
Created July 8, 2019 02:15
Show Gist options
  • Save alexytiger/cd02d28b98db3eb547e251a7e3eaf3c0 to your computer and use it in GitHub Desktop.
Save alexytiger/cd02d28b98db3eb547e251a7e3eaf3c0 to your computer and use it in GitHub Desktop.
export const routes: Routes = [
{ path: '', redirectTo: '/dashboard', pathMatch: 'full' },
{
path: 'dashboard',
component: DashboardComponent,
},
{
path: 'p2p-bazaar',
loadChildren: () => import('./p2p-bazaar/p2p-bazaar.module').then(mod => mod.P2pBazaarModule),
canActivate: [guards.EthInitGuard],
},
{ path: '**', component: NotFoundPageComponent }, // !!!has to be the last one
];
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment