-
-
Notifications
You must be signed in to change notification settings - Fork 241
/
Copy pathcustom-tabs.module.ts
38 lines (34 loc) · 1.21 KB
/
custom-tabs.module.ts
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
import { NgModule, NO_ERRORS_SCHEMA } from '@angular/core';
import { NativeScriptCommonModule } from 'nativescript-angular/common';
import { NativeScriptRouterModule } from 'nativescript-angular/router';
import { CustomTabsComponent } from './custom-tabs.component';
import { PlayerComponent } from "../player/players.component";
import { PlayerDetailComponent } from "../player/player-detail.component";
import { TeamsComponent } from "../team/teams.component";
import { TeamDetailComponent } from "../team/team-detail.component";
import { Route } from "@angular/router";
import { SharedModule } from "../shared.module";
const routes: Route[] = [
{
path: 'tabs',
component: CustomTabsComponent,
children: [
{ path: "players", component: PlayerComponent },
{ path: "player/:id", component: PlayerDetailComponent },
{ path: "teams", component: TeamsComponent },
{ path: "team/:id", component: TeamDetailComponent },
]
},
];
@NgModule({
declarations: [CustomTabsComponent
],
imports: [
NativeScriptCommonModule,
NativeScriptRouterModule,
NativeScriptRouterModule.forChild(routes),
SharedModule
],
schemas: [NO_ERRORS_SCHEMA]
})
export class CustomTabsModule { }