1Dynamic Page
2
31) (click)="onProductSelect(item.id)" for html
4
52) onProductSelect(id){
6 this.nav.navigateForward('productlist/' + id); for ts
7 console.log('id of category',id);
8 }
9
103). path: 'productlist/:id', for app routing
11
12
134) this.id = this.activatedRoute.snapshot.paramMap.get('id'); dynamic page
14 this.apiService.getItem(this.id).subscribe(response => { ts ngoninit
15 console.log('product response 1', response);
16 this.products = response;
17 console.log('product repsonse 2', this.products)
18 })
19
20
21