Skip to content

Instantly share code, notes, and snippets.

@kavin-1103
Last active July 26, 2023 09:54
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save kavin-1103/c0949641fadb2df1f73bdeaa9716fbf1 to your computer and use it in GitHub Desktop.
Save kavin-1103/c0949641fadb2df1f73bdeaa9716fbf1 to your computer and use it in GitHub Desktop.
export const routes: Routes = [
{path:'', redirectTo:'/home', pathMatch: 'full'},
{
path:'',
loadChildren : () => import('./core/pages/Customer/customer.module').then((m)=> m.CustomerModule)
},
{
path:'dashboard',
loadChildren : () => import('./core/pages/Admin/admin.module').then((m)=> m.AdminModule)
},
{path:'restricted' , component : UnAuthorizedComponent},
{path: '**', redirectTo: '/404'},
{ path: '404', component: PageNotFoundComponent }
];
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment