mirror of
https://github.com/Mueller-Patrick/Betterzon.git
synced 2026-10-27 12:57:35 +00:00
BETTERZON-43: Product List Component style adjustments
This commit is contained in:
1 parent
87193310a8
commit
940bb85bcd
3 files changed
+13
-5
No files matched your search
@@ -3,4 +3,7 @@
|
|||||||
border-color: dimgrey;
|
border-color: dimgrey;
|
||||||
border-radius: .5em;
|
border-radius: .5em;
|
||||||
padding: .25em;
|
padding: .25em;
|
||||||
|
margin: auto;
|
||||||
|
margin-bottom: .5em;
|
||||||
|
max-width: 50em;
|
||||||
}
|
}
|
||||||
@@ -1,7 +1,12 @@
|
|||||||
<meta charset="UTF-8">
|
<meta charset="UTF-8">
|
||||||
<p class="productItem" *ngFor="let product of products" (click)="clickedProduct(product)">
|
<div class="productItem" *ngFor="let product of products" (click)="clickedProduct(product)">
|
||||||
{{product.name}}
|
|
||||||
</p>
|
|
||||||
<div *ngIf="showProductPicture">
|
<div *ngIf="showProductPicture">
|
||||||
Test
|
{{product.image_guid}}
|
||||||
|
</div>
|
||||||
|
<div>
|
||||||
|
{{product.name}}
|
||||||
|
</div>
|
||||||
|
<div>
|
||||||
|
567
|
||||||
|
</div>
|
||||||
</div>
|
</div>
|
||||||
@@ -35,7 +35,7 @@ export class ProductListComponent implements OnInit {
|
|||||||
}
|
}
|
||||||
|
|
||||||
clickedProduct(product: Product): void {
|
clickedProduct(product: Product): void {
|
||||||
this.router.navigate([('/helloworld/' + product.product_id)]);
|
this.router.navigate([('/product/' + product.product_id)]);
|
||||||
}
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
Reference in new issue
Block a user