Permalink
Browse files

added minimum for cart, added type=num for cart

  • Loading branch information...
1 parent 00cf81e commit 81e5b8be6d3ba78f65552d71af535383d8f0f6c2 @btford committed Sep 14, 2012
Showing with 1 addition and 1 deletion.
  1. +1 −1 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>

0 comments on commit 81e5b8b

Please sign in to comment.