disable button until items are in cart

This commit is contained in:
2018-07-23 11:19:56 -04:00
parent 88dd66188e
commit 9645a6b81f
2 changed files with 5 additions and 3 deletions

View File

@ -33,7 +33,7 @@
<td class="pl-3">{{total() | currency}}</td>
</tr>
</table>
<button mat-raised-button class="float-right mt-3" color="primary" (click)="checkout()">Checkout</button>
<button mat-raised-button class="float-right mt-3" color="primary" (click)="checkout()" [disabled]="total() <= 0">Checkout</button>
</div>
</mat-card>
</div>