-
-
Notifications
You must be signed in to change notification settings - Fork 295
/
Copy pathtab-view-examples.module.ts
65 lines (63 loc) · 2.21 KB
/
tab-view-examples.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
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
import { NgModule, NO_ERRORS_SCHEMA } from "@angular/core";
import { NativeScriptRouterModule } from "nativescript-angular/router";
import { NativeScriptCommonModule } from "nativescript-angular/common";
import { TabViewExamplesComponent } from "./tab-view-examples.component";
import { BasicTabViewComponent } from "./basic-tab-view/basic-tab-view.component";
import { TabViewIconFontsComponent } from "./tab-view-icon-fonts/tab-view-icon-fonts.component";
import { TabViewItemsComponent } from "./tab-view-items/tab-view-items.component";
import { CustomizingTabViewItemsComponent } from "./customizing-tab-view-items/customizing-tab-view-items.component";
import { BindingTabViewItemsComponent } from "./binding-tab-view-items/binding-tab-view-items.component";
import { TitleAndNavButtonModule } from "../../directives/title-and-nav-button.module";
import { NativeScriptFormsModule } from "nativescript-angular/forms";
export const routerConfig = [
{
path: "",
component: TabViewExamplesComponent
},
{
path: "basic",
component: BasicTabViewComponent,
data: { title: "Basic TabView" }
},
{
path: "items",
component: TabViewItemsComponent,
data: { title: "TabView items" }
},
{
path: "customizing",
component: CustomizingTabViewItemsComponent,
data: { title: "Customizing Tab View" }
},
{
path: "binding",
component: BindingTabViewItemsComponent,
data: { title: "Binding (Two-way) TabView selectedIndex" }
},
{
path: "icon-fonts",
component: TabViewIconFontsComponent,
data: { title: "Using icon font in TabView" }
}
];
@NgModule({
schemas: [NO_ERRORS_SCHEMA],
imports: [
TitleAndNavButtonModule,
NativeScriptFormsModule,
NativeScriptCommonModule,
NativeScriptRouterModule,
NativeScriptRouterModule.forChild(routerConfig)
],
declarations: [
TabViewExamplesComponent,
BasicTabViewComponent,
TabViewItemsComponent,
CustomizingTabViewItemsComponent,
BindingTabViewItemsComponent,
TabViewIconFontsComponent
]
})
export class TabViewExamplesModule {
constructor() { }
}