craftsmart-routing.module.ts 955 B

1234567891011121314151617181920212223242526272829303132333435
  1. import { NgModule } from '@angular/core';
  2. import { RouterModule, Routes } from '@angular/router';
  3. import { PageCartComponent } from './page-cart/page-cart.component';
  4. import { HomeComponent } from './home/home.component';
  5. import { PageMineComponent } from './page-mine/page-mine.component';
  6. import { NavTabsComponent } from './nav-tabs/nav-tabs.component';
  7. import { PageDiscoverComponent } from './page-discover/page-discover.component';
  8. const routes: Routes = [
  9. {
  10. path:"",
  11. component:NavTabsComponent,
  12. children:[
  13. { path:"home",component:HomeComponent
  14. },
  15. {
  16. path:"page-cart",component:PageCartComponent
  17. },
  18. {
  19. path:"page-mine",component:PageMineComponent
  20. },
  21. {
  22. path:"page-discover",component:PageDiscoverComponent
  23. }
  24. ]
  25. },
  26. ];
  27. @NgModule({
  28. imports: [RouterModule.forChild(routes)],
  29. exports: [RouterModule]
  30. })
  31. export class CraftsmartRoutingModule { }