-
Notifications
You must be signed in to change notification settings - Fork 0
/
app-routing.module.ts
37 lines (28 loc) · 1.29 KB
/
app-routing.module.ts
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
import { NgModule } from "@angular/core";
import { NativeScriptRouterModule } from "nativescript-angular/router";
import { Routes } from "@angular/router";
import { FirstComponent } from "./prog-ns/progcomp.component";
import { LatteComponent } from "./Latte/latte.component";
import { MochaComponent } from "./Mocha/mocha.component";
import{LoginComponent} from "./Loginform/Loginform.component";
import {TabViewComponent} from "./TabView/tabview.component";
import {CakesComponent} from "./TabView/Cakes/cakes.component";
//import { TryComponent } from "./try/try.component";
//import { NextComponent } from "./next/next.component";
//import { ItemsComponent } from "./item/items.component";
//import { ItemDetailComponent } from "./item/item-detail.component";
const routes: Routes = [
{ path: "", redirectTo: "/Loginform", pathMatch: "full" },
{path:"Loginform",component:LoginComponent},
{path:"TabView",component:TabViewComponent,
children:[{ path: "prog-ns", component: FirstComponent,outlet:'coffee'},
{path:"Cakes" ,component:CakesComponent ,outlet:'cakes'}
]},
{ path: "Latte", component:LatteComponent },
{path:"Mocha",component:MochaComponent}
];
@NgModule({
imports: [NativeScriptRouterModule.forRoot(routes)],
exports: [NativeScriptRouterModule]
})
export class AppRoutingModule { }