import { NgModule } from "@angular/core" ; import { NativeScriptRouterModule } from "nativescript-angular/router" ; import { Routes } from "@angular/router" ; import { ItemsComponent } from "./item/items.component" ; const routes = [ { path : "" , redirectTo : "/items" , pathMatch : "full" } , { path : "items" , component : ItemsComponent } ] ; @ NgModule ( { imports : [ NativeScriptRouterModule . forRoot ( routes ) ] , exports : [ NativeScriptRouterModule ] } ) export class AppRoutingModule { }