Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

added minimum for cart, added type=num for cart

  • Loading branch information...
commit 81e5b8be6d3ba78f65552d71af535383d8f0f6c2 1 parent 00cf81e
Brian Ford authored
Showing with 1 addition and 1 deletion.
  1. +1 −1  views/cart.html
2  views/cart.html
View
@@ -13,7 +13,7 @@
</tr>
<tr ng-repeat="item in cart">
<td>{{item.product.name}}</td>
- <td><input ng-model="item.quantity"></input></td>
+ <td><input type="number" min="1" ng-model="item.quantity"></input></td>
<td>{{item.product.price | currency}}</td>
<td>{{item.product.price * item.quantity | currency}}</td>
<td><a href ng-click="removeFromCart(item)">remove</a></td>
Please sign in to comment.
Something went wrong with that request. Please try again.