import { ModuleWithProviders } from '@angular/core';
import { Routes, RouterModule } from '@angular/router';
import { ProductlistComponent } from './productlist/productlist.component';
import { ProductdetailsComponent } from './productdetails/productdetails.component';

const ModuleRoutes: Routes = [
    { path: 'productlist', component: ProductlistComponent},
    { path: 'productdetails', component: ProductdetailsComponent}
];

export const moduleRouting: ModuleWithProviders = RouterModule.forChild(ModuleRoutes)

