import { NgModule } from '@angular/core'; import { Routes, RouterModule } from '@angular/router'; const routes: Routes = [ { path: '**', redirectTo: 'public/home' }, { path: 'questions', loadChildren: () => import('./modules/questioning/questioning.module').then((x) => x.QuestioningModule) } ]; @NgModule({ imports: [RouterModule.forRoot(routes)], exports: [RouterModule] }) export class AppRoutingModule {}