-
-
Notifications
You must be signed in to change notification settings - Fork 295
/
Copy pathcolor-examples.module.ts
34 lines (31 loc) · 1.11 KB
/
color-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
import { NgModule, NO_ERRORS_SCHEMA } from "@angular/core";
import { NativeScriptModule, NativeScriptRouterModule, NativeScriptFormsModule } from "nativescript-angular";
import { ColorExamplesComponent } from "./color-examples.component";
import { CreatingColorsExampleComponent } from "./creating-colors/creating-colors.component";
import { HexPipe } from "./creating-colors/creating-colors.component";
import { TitleAndNavButtonModule } from "../directives/title-and-nav-button.module";
export const routerConfig = [
{
path: "",
component: ColorExamplesComponent
},
{
path: "creating-colors",
component: CreatingColorsExampleComponent,
data: { title: "Creating colors" }
}
];
@NgModule({
schemas: [NO_ERRORS_SCHEMA],
imports: [
TitleAndNavButtonModule,
NativeScriptModule,
NativeScriptRouterModule,
NativeScriptFormsModule,
NativeScriptRouterModule.forChild(routerConfig)
],
declarations: [HexPipe, ColorExamplesComponent, CreatingColorsExampleComponent]
})
export class ColorExamplesModule {
constructor() { }
}