exercises

Unnamed repository; edit this file 'description' to name the repository.
Log | Files | Refs | README

products.routes.ts (388B)


      1 import { Routes } from '@angular/router';
      2 import { ProductsListComponent } from './products-list.component';
      3 import { ProductDetailsComponent } from './product-details.component';
      4 
      5 export const PRODUCT_ROUTES: Routes = [
      6     {
      7         path: '',
      8         component: ProductsListComponent,        
      9     },
     10     {
     11         path: ':productId',
     12         component: ProductDetailsComponent,
     13     }
     14 ];