Skip to content

Instantly share code, notes, and snippets.

@dafma
Created January 26, 2016 01:40
Show Gist options
  • Save dafma/fa936b4056cc7a642586 to your computer and use it in GitHub Desktop.
Save dafma/fa936b4056cc7a642586 to your computer and use it in GitHub Desktop.
<table class="table">
<thead>
<tr>
<th>Id</th>
<th>Nombre</th>
<th>Cantidad</th>
<th>Precio unidad</th>
<th>Total producto</th>
<th>Eliminar</th>
</tr>
</thead>
<tbody>
<tr ng-repeat="prod in udpShopContent" ng-if="udpShopContent" >
<td>{$ prod.id $}</td>
<td>{$ prod.name$}</td>
<td>{$ prod.qty$}</td>
<td>{$ roundCurrency(prod.price)$}</td>
<td>{$ roundCurrency(prod.price * prod.qty)$}</td>
<td><a class="button alert" ng-click="remove(prod.id)">Eliminar</a></td>
</tr>
<tr>
<td colspan="6">Precio total del carrito: {$ roundCurrency(udpShopTotalPrice) $}</td>
<tr>
<tr>
<td colspan="6">Número total de artículos: {$ udpShopTotalProducts $} </td>
<tr>
<tr>
<td colspan="6">
<a type="button" class="btn btn-danger" ng-disabled="udpShopContent.length < 1" class="button alert large-12" ng-click="destroy()">
Reiniciar Carrito
</a>
<pre>{$ udpShopContent | json $}</pre>
<tr>
</tbody>
</table>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment