Merge remote-tracking branch 'origin/feature/products' into fix/history-issue
# Conflicts: # src/app/features/product/components/product-card/product-card.html # src/app/features/product/components/product-card/product-card.ts # src/app/features/product/services/product-service.ts
This commit is contained in:
commit
b575b42f22
@ -5,11 +5,11 @@
|
|||||||
<img [src]="product.productImages[0]" alt="" class="object-cover rounded-xl w-full h-full" />
|
<img [src]="product.productImages[0]" alt="" class="object-cover rounded-xl w-full h-full" />
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<p class="text-gray-400 text-sm truncate">{{ product.title }}</p>
|
<p class="text-gray-400 text-sm truncate">{{product.title}}</p>
|
||||||
<p class="text-gray-400 text-xs">⭐4.5</p>
|
<p class="text-gray-400 text-xs">⭐4.5</p>
|
||||||
<p class="text-gray-400 text-xs">
|
<p class="text-gray-400 text-xs">
|
||||||
Price:
|
Price:
|
||||||
<span class="line-through italic mr-1">{{ product.actualPrice }}</span>
|
<span class="line-through italic mr-1">{{product.actualPrice}}</span>
|
||||||
<span class="font-bold">{{ product.listPrice }}/-</span>
|
<span class="font-bold">{{product.listPrice}}/-</span>
|
||||||
</p>
|
</p>
|
||||||
</div>
|
</div>
|
||||||
|
|||||||
@ -15,6 +15,6 @@ export class ProductCard {
|
|||||||
@Input() product!: ProductModel;
|
@Input() product!: ProductModel;
|
||||||
|
|
||||||
goToProductDetails() {
|
goToProductDetails() {
|
||||||
this.router.navigate(['/products', this.product.slug]);
|
this.router.navigate(["/products", this.product.slug]);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user