1234567891011121314151617181920212223242526272829303132333435363738394041424344454647 |
- import { NgModule } from '@angular/core';
- import { RouterModule, Routes } from '@angular/router';
- import { TabsPage } from './tabs.page';
- const routes: Routes = [
- {
- path: 'tabs',
- component: TabsPage,
- children: [
- {
- path: 'tab1',
- loadChildren: () => import('../tab1/tab1.module').then(m => m.Tab1PageModule)
- },
- {
- path: 'tab2',
- loadChildren: () => import('../tab2/tab2.module').then(m => m.Tab2PageModule)
- },
- {
- path: 'tab3',
- loadChildren: () => import('../tab3/tab3.module').then(m => m.Tab3PageModule)
- },
- {
- path: 'calendar',
- loadChildren: () => import('../../modules/user/mine/mine.module').then(mod => mod.MinePageModule)
- },
- {
- path: "tree",
- loadChildren: () => import('../../modules/tab/tree/tree.module').then(mod => mod.TreePageModule)
- },
- {
- path: '',
- redirectTo: '/tabs/tab1',
- pathMatch: 'full'
- }
- ]
- },
- {
- path: '',
- redirectTo: '/tabs/tab1',
- pathMatch: 'full'
- }
- ];
- @NgModule({
- imports: [RouterModule.forChild(routes)],
- })
- export class TabsPageRoutingModule {}
|