import { NgModule , NO_ERRORS_SCHEMA } from "@angular/core" ; import { NativeScriptRouterModule } from "@nativescript/angular" ; import { NativeScriptCommonModule } from "@nativescript/angular" ; import { ApplicationExamplesComponent } from "./application-examples.component" ; import { AppCheckingTargetExampleComponent } from "./app-checking-target/app-checking-target.component" ; import { AppUsingAndroidExampleComponent } from "./app-using-android-specifics/app-using-android-specifics.component" ; import { AppUsingIosExampleComponent } from "./app-using-ios-specifics/app-using-ios-specifics.component" ; import { ApplicationEventsComponent } from "./application-events/application-events.component" ; import { TitleAndNavButtonModule } from "../../directives/title-and-nav-button.module" ; export const routerConfig = [ { path : "" , component : ApplicationExamplesComponent } , { path : "check-target" , component : AppCheckingTargetExampleComponent , data : { title : "Check The Target Platform" } } , { path : "using-android" , component : AppUsingAndroidExampleComponent , data : { title : "Using Android Specifics" } } , { path : "using-ios" , component : AppUsingIosExampleComponent , data : { title : "Using iOS Specifics" } } , { path : "application-events" , component : ApplicationEventsComponent , data : { title : "Application Events" } } ] ; @ NgModule ( { schemas : [ NO_ERRORS_SCHEMA ] , imports : [ TitleAndNavButtonModule , NativeScriptCommonModule , NativeScriptRouterModule , NativeScriptRouterModule . forChild ( routerConfig ) ] , declarations : [ ApplicationEventsComponent , ApplicationExamplesComponent , AppCheckingTargetExampleComponent , AppUsingAndroidExampleComponent , AppUsingIosExampleComponent , ApplicationEventsComponent ] } ) export class ApplicationExamplesModule { constructor ( ) { } }