typescript IF_05_13_Routing_Tabs.ts
Posted
tags:
篇首语:本文由小常识网(cha138.com)小编为大家整理,主要介绍了typescript IF_05_13_Routing_Tabs.ts相关的知识,希望对你有一定的参考价值。
import { NgModule } from '@angular/core';
import { Routes, RouterModule } from '@angular/router';
import { HomePage } from './home/home.page';
import { OfficePage } from './office/office.page';
import { ClubPage } from './club/club.page';
import { StudioPage } from './studio/studio.page';
const routes: Routes = [
{ path: '', redirectTo: '/home/(office:office)', pathMatch: 'full' },
{
path: 'home',
component: HomePage,
children: [
{ path: 'office', component: OfficePage, outlet: 'office' },
{ path: 'club', component: ClubPage, outlet: 'club' },
{ path: 'studio', component: StudioPage, outlet: 'studio' }
]
},
];
@NgModule({
imports: [RouterModule.forRoot(routes)],
exports: [RouterModule]
})
export class AppRoutingModule { }
以上是关于typescript IF_05_13_Routing_Tabs.ts的主要内容,如果未能解决你的问题,请参考以下文章
typescript IF_05_05_Office_GoBack_TS
typescript IF_06_05_home.page.ts_3
typescript IF_05_06_NavigationService_TS
typescript IF_05_12_Popover_Office_TS
typescript IF_05_10_Popover_Home_TS
typescript IF_05_08_Modal_Office_TS