import { NgModule } from '@angular/core'; import { RouterModule, Routes } from '@angular/router'; const routes: Routes = [ {path: 'login', loadChildren: () => import('./login/login.module').then(mod => mod.LoginPageModule)}, {path: 'mine', loadChildren: () => import('./mine/mine.module').then(mod => mod.MinePageModule)}, {path: 'edit/info', loadChildren: () => import('./edit-info/edit-info.module').then(mod => mod.EditInfoPageModule)}, { path: 'register', loadChildren: () => import('./register/register.module').then( m => m.RegisterPageModule) }, { path: 'tabs', loadChildren: () => import('../../app/tabs/tabs.module').then( m => m.TabsPageModule) }, ]; @NgModule({ imports: [RouterModule.forChild(routes)], exports: [RouterModule] }) export class UserRoutingModule { }