import { NgModule , NO_ERRORS_SCHEMA } from "@angular/core" ; import { NativeScriptRouterModule } from "@nativescript/angular" ; import { NativeScriptCommonModule } from "@nativescript/angular" ; import { LocationExamplesComponent } from "./location-examples.component" ; import { BasicLocationExampleComponent } from "./basic-location-example/basic-location-example" ; import { LocationMonitoringExampleComponent } from "./location-monitoring-example/location-monitoring-example" ; import { TitleAndNavButtonModule } from "../../directives/title-and-nav-button.module" ; import { NativeScriptFormsModule } from "@nativescript/angular" ; export const routerConfig = [ { path : "" , component : LocationExamplesComponent } , { path : "location" , component : BasicLocationExampleComponent , data : { title : "Location" } } , { path : "location-monitoring" , component : LocationMonitoringExampleComponent , data : { title : "Location monitoring" } } ] ; @ NgModule ( { schemas : [ NO_ERRORS_SCHEMA ] , imports : [ TitleAndNavButtonModule , NativeScriptFormsModule , NativeScriptCommonModule , NativeScriptRouterModule , NativeScriptRouterModule . forChild ( routerConfig ) ] , declarations : [ LocationExamplesComponent , BasicLocationExampleComponent , LocationMonitoringExampleComponent ] } ) export class LocationExamplesModule { constructor ( ) { } }