import { RouterModule, Routes } from '@angular/router';
import { NgModule } from '@angular/core';
const routes: Routes = [
{
path: '',
pathMatch: 'full',
loadChildren: () => import('@<%= projectName %>/<%= name %>').then((m) => m.<%= className %>Module)
},
{
path: '**',
redirectTo: '',
pathMatch: 'full',
},
]
@NgModule({
imports: [RouterModule.forRoot(routes, { onSameUrlNavigation: 'reload' })],
exports: [RouterModule],
})
export class AppRoutingModule {}
Leave Feedback