list products with DTO

This commit is contained in:
Tykayn 2025-02-17 16:34:21 +01:00 committed by tykayn
parent cd4b678002
commit 0d672d5447
7 changed files with 57 additions and 11 deletions

View file

@ -5,12 +5,11 @@
ng-if="! c.hidden">
<h2 ng-class="{'hidden':c.hidden}" class="title">
{{ c.name }}
{{ c.name }} ({{c.productsDTO.length}}
</h2>
<div class="product-listing" >
<span ng-repeat="p in c.products track by p.id"
<span ng-repeat="p in c.productsDTO track by p.id"
class="product-box"
>
<button class="product-button text-left" ng-class="{ 'active' : p.enabled}" ng-click="addProduct( p )">
<img class="product-image" src="{{p.image}}" alt="image" ng-if="p.image.length">