import { NgModule } from '@angular/core'; import { RouterModule, Routes } from '@angular/router'; const routes: Routes = [ {path: 'chat', loadChildren: () => import('./chat/chat.module').then(mod => mod.ChatPageModule)}, ]; @NgModule({ imports: [RouterModule.forChild(routes)], exports: [RouterModule] }) export class AigcRoutingModule { }