12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061 |
- import { Routes } from '@angular/router';
- import { TabsPage } from './tabs.page';
- export const routes: Routes = [
- {
- path: 'tabs',
- component: TabsPage,
- children: [
- {
- path: 'tab1',
- loadComponent: () =>
- import('../tab1/tab1.page').then((m) => m.Tab1Page),
- },
- {
- path: 'tab2',
- loadComponent: () =>
- import('../tab2/tab2.page').then((m) => m.Tab2Page),
- },
- {
- path: 'tab3',
- loadComponent: () =>
- import('../tab3/tab3.page').then((m) => m.Tab3Page),
- },
- {
- path: 'edit',
- loadComponent: () =>
- import('../page-edit/page-edit.component').then((m) => m.PageEditComponent),
- },
- {
- path: 'tips',
- loadComponent: () =>
- import('../health-tips/health-tips.component').then((m) => m.HealthTipsComponent),
- },
- {
- path: 'asy',
- loadComponent: () =>
- import('../asy/asy.component').then((m) => m.AsyComponent),
- },
- {
- path: 'asf',
- loadComponent: () =>
- import('../asf/asf.component').then((m) => m.AsfComponent),
- },
- {
- path: 'asx',
- loadComponent: () =>
- import('../asx/asx.component').then((m) => m.AsxComponent),
- },
- {
- path: '',
- redirectTo: '/tabs/tab1',
- pathMatch: 'full',
- },
- ],
- },
- {
- path: '',
- redirectTo: '/tabs/tab1',
- pathMatch: 'full',
- },
- ];
|