import { NgModule , NO_ERRORS_SCHEMA } from "@angular/core" ; import { NativeScriptRouterModule } from "@nativescript/angular" ; import { NativeScriptCommonModule } from "@nativescript/angular" ; import { StyleExamplesComponent } from "./style-examples.component" ; import { ApplyStyleCodeComponent } from "./apply-style-via-code/apply-style-code.component" ; import { StyleCSSFileComponent } from "./style-css-file/style-css-file.component" ; import { TitleAndNavButtonModule } from "../../directives/title-and-nav-button.module" ; export const routerConfig = [ { path : "" , component : StyleExamplesComponent } , { path : "apply-style" , component : ApplyStyleCodeComponent , data : { title : "Apply style using code" } } , { path : "css-file" , component : StyleCSSFileComponent , data : { title : "Add style via CSS file" } } ] ; @ NgModule ( { schemas : [ NO_ERRORS_SCHEMA ] , imports : [ TitleAndNavButtonModule , NativeScriptCommonModule , NativeScriptRouterModule , NativeScriptRouterModule . forChild ( routerConfig ) ] , declarations : [ StyleExamplesComponent , ApplyStyleCodeComponent , StyleCSSFileComponent ] } ) export class StyleExamplesModule { constructor ( ) { } }