add spinner

This commit is contained in:
Raghu-Ch
2018-09-16 14:10:50 -04:00
parent d8d30747d0
commit 36a1961dd6
10 changed files with 293 additions and 5 deletions

View File

@@ -20,7 +20,8 @@ export class ProductDetailComponent implements OnInit {
getProductDetails(): void {
const id = this.route.snapshot.paramMap.get('id');
// console.log(id);
// const id$ = this.route.params.subscribe(params => console.log(params['id']));
// console.log(id$);
this.productService.getProduct(id).subscribe((res) => {
this.currentProduct = res;
console.log(this.currentProduct);