import { NgModule } from "@angular/core";
import { PreloadAllModules, RouterModule, Routes } from "@angular/router";

const routes: Routes = [
  {
    path: "",
    loadChildren: "./landing/landing.module#LandingPageModule"
  },
  { path: "tabs", loadChildren: "./tabs/tabs.module#TabsPageModule" },
  { path: "login", loadChildren: "./login/login.module#LoginPageModule" },
  { path: "signup", loadChildren: "./signup/signup.module#SignupPageModule" },
  {
    path: "verification",
    loadChildren: "./verification/verification.module#VerificationPageModule"
  },
  { path: "forgot", loadChildren: "./forgot/forgot.module#ForgotPageModule" },
  {
    path: "changepass",
    loadChildren: "./changepass/changepass.module#ChangepassPageModule"
  },
  {
    path: "orderdelivered",
    loadChildren:
      "./orderdelivered/orderdelivered.module#OrderdeliveredPageModule"
  },
  {
    path: "orderplaced",
    loadChildren: "./orderplaced/orderplaced.module#OrderplacedPageModule"
  },
  {
    path: "ordercancelled",
    loadChildren:
      "./ordercancelled/ordercancelled.module#OrdercancelledPageModule"
  },
  {
    path: "myorder",
    loadChildren: "./myorder/myorder.module#MyorderPageModule"
  },
  { path: "cart", loadChildren: "./cart/cart.module#CartPageModule" },
  {
    path: "changedetails",
    loadChildren: "./changedetails/changedetails.module#ChangedetailsPageModule"
  },
  {
    path: "wishlist",
    loadChildren: "./wishlist/wishlist.module#WishlistPageModule"
  },
  {
    path: "addaddresss",
    loadChildren: "./addaddresss/addaddresss.module#AddaddresssPageModule"
  },
  {
    path: "profile",
    loadChildren: "./profile/profile.module#ProfilePageModule"
  },
  { path: "home", loadChildren: "./home/home.module#HomePageModule" },
  {
    path: "productlist",
    loadChildren: "./productlist/productlist.module#ProductlistPageModule"
  },
  {
    path: "productdetail",
    loadChildren: "./productdetail/productdetail.module#ProductdetailPageModule"
  },
  {
    path: "reviewlist",
    loadChildren: "./reviewlist/reviewlist.module#ReviewlistPageModule"
  },
  {
    path: "catagory",
    loadChildren: "./catagory/catagory.module#CatagoryPageModule"
  },
  {
    path: "trackorder",
    loadChildren: "./trackorder/trackorder.module#TrackorderPageModule"
  },
  {
    path: "storelist",
    loadChildren: "./storelist/storelist.module#StorelistPageModule"
  },
  {
    path: "catstorelist",
    loadChildren: "./catstorelist/catstorelist.module#CatStorelistPageModule"
  },
  { path: "nearby", loadChildren: "./nearby/nearby.module#NearbyPageModule" },
  { path: "review", loadChildren: "./review/review.module#ReviewPageModule" },
  {
    path: "delivery",
    loadChildren: "./delivery/delivery.module#DeliveryPageModule"
  },
  {
    path: "addcard",
    loadChildren: "./addcard/addcard.module#AddcardPageModule"
  },
  {
    path: "searchmodal",
    loadChildren: "./searchmodal/searchmodal.module#SearchmodalPageModule"
  }
];
@NgModule({
  imports: [
    RouterModule.forRoot(routes, { preloadingStrategy: PreloadAllModules })
  ],
  exports: [RouterModule]
})
export class AppRoutingModule {}
