- {{product.name}}
+
+ {{product.name}}
-
- 567
+
+ 5€
+
+
+
300">
+ {{product.short_description.substring(0, 300) + "..."}}
+
+
+ {{product.short_description}}
+
diff --git a/Frontend/src/app/product-list/product-list.component.ts b/Frontend/src/app/product-list/product-list.component.ts
index 0a0d91c..9ead8f8 100644
--- a/Frontend/src/app/product-list/product-list.component.ts
+++ b/Frontend/src/app/product-list/product-list.component.ts
@@ -12,6 +12,7 @@ export class ProductListComponent implements OnInit {
products: Product[];
@Input() numberOfProducts: number;
@Input() showProductPicture: boolean;
+ type: string;
constructor(
private apiService: ApiService,
@@ -21,6 +22,7 @@ export class ProductListComponent implements OnInit {
ngOnInit(): void {
this.getProducts();
+ console.log(this.showProductPicture);
if (!this.numberOfProducts) {
this.numberOfProducts = 10;
@@ -28,6 +30,9 @@ export class ProductListComponent implements OnInit {
if (!this.showProductPicture) {
this.showProductPicture = false;
}
+ this.type = 'PLP';
+
+ console.log(this.showProductPicture);
}
getProducts(): void {