showing results for - " 28click 29 3d 22onproductselect 28item id 29 22"
Luis
01 Feb 2017
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
similar questions