import { Routes } from '@angular/router' ; import { ProductListComponent } from './product-list/product-list.component' ; import { ProductDetailComponent } from './product-detail/product-detail.component' ; export const productRoutes = [ { path : 'products' , component : ProductListComponent } , { path : 'products/:id' , component : ProductDetailComponent } ] ;