Routing - Path Variables
Routing - Path Variables ~30 mins
Task 1: Search By Category - Path Variables
    <a routerLink="products/ALL">All Products</a>
<a routerLink="products/MOBILE">Mobile</a>
<a routerLink="products/LAPTOP">Laptop</a>
   routes = [
{path:'products/:category', component:ListProductComponent},
{path:'viewproduct/:id', component:ViewProductComponent}

];
Task 2: Get Category from Path Params (i.e category=ALL)
  category:string;
constructor(private route:ActivatedRoute) {
this.route.params.subscribe(params=>{
this.category = params["category"];
console.log("Category:" + this.category);
});
}

Task 3: Test Router - with different Path Variables