import { NgModule } from "@angular/core" ; import { Routes } from "@angular/router" ; import { NativeScriptRouterModule } from "@nativescript/angular" ; const routes = [ { path : "" , redirectTo : "/home" , pathMatch : "full" } , { path : "home" , loadChildren : ( ) => import ( "~/app/home/home.module" ) . then ( m => m . HomeModule ) } ] ; @ NgModule ( { imports : [ NativeScriptRouterModule . forRoot ( routes ) ] , exports : [ NativeScriptRouterModule ] } ) export class AppRoutingModule { }