File: /var/www/vhost/disk-apps/pwa.sports-crowd.com/src/app/pages/video/video-routing.module.ts
import { NgModule } from '@angular/core';
import { Routes, RouterModule } from '@angular/router';
import { VideoPage } from './video.page';
const routes: Routes = [
{
path: '',
redirectTo: '/app/tabs/settings/video/youtube',
pathMatch: 'full',
},
{
path: '',
component: VideoPage,
children: [
{
path: 'youtube',
loadChildren: () => import('../youtube/youtube.module').then( m => m.YoutubePageModule)
},
{
path: 'tiktok',
loadChildren: () => import('../tiktok/tiktok.module').then( m => m.TiktokPageModule)
}
]
}
];
@NgModule({
imports: [RouterModule.forChild(routes)],
exports: [RouterModule],
})
export class VideoPageRoutingModule {}