UNPKG

tns-template-master-detail-progress-ng

Version:

Master-detail interface to display tables from a Progress backend and inspect and edit selected records.

22 lines (19 loc) 734 B
import { NgModule } from "@angular/core"; import { Routes } from "@angular/router"; import { NativeScriptRouterModule } from "nativescript-angular/router"; import { LoginComponent } from "./login/login.component"; import { LoginGuard } from "./shared/login-guard.service"; const routes: Routes = [ { path: "", redirectTo: "/customers", pathMatch: "full" }, { path: "customers", loadChildren: "./customers/customers.module#CustomersModule", canActivate: [LoginGuard], }, { path: "login", component: LoginComponent } ]; @NgModule({ imports: [NativeScriptRouterModule.forRoot(routes)], exports: [NativeScriptRouterModule] }) export class AppRoutingModule { }