mirror of
https://forge.chapril.org/tykayn/caisse-bliss
synced 2025-06-20 01:44:42 +02:00
list products with DTO
This commit is contained in:
parent
cd4b678002
commit
0d672d5447
7 changed files with 57 additions and 11 deletions
|
@ -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">
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue