1234567891011121314151617181920212223242526272829303132333435 |
- import { NgModule } from '@angular/core';
- import { RouterModule, Routes } from '@angular/router';
- import { PageCartComponent } from './page-cart/page-cart.component';
- import { HomeComponent } from './home/home.component';
- import { PageMineComponent } from './page-mine/page-mine.component';
- import { NavTabsComponent } from './nav-tabs/nav-tabs.component';
- import { PageDiscoverComponent } from './page-discover/page-discover.component';
- const routes: Routes = [
- {
- path:"",
- component:NavTabsComponent,
- children:[
- { path:"home",component:HomeComponent
- },
- {
- path:"page-cart",component:PageCartComponent
- },
- {
- path:"page-mine",component:PageMineComponent
- },
- {
- path:"page-discover",component:PageDiscoverComponent
- }
- ]
- },
-
- ];
- @NgModule({
- imports: [RouterModule.forChild(routes)],
- exports: [RouterModule]
- })
- export class CraftsmartRoutingModule { }
|