Changed cart to button

This commit is contained in:
Zakary Timson 2018-07-23 19:14:01 -04:00
parent c1c309c848
commit defb2a8fc8

View File

@ -29,7 +29,11 @@
<span class="text-muted mr-3">{{user.email}}</span> <span class="text-muted mr-3">{{user.email}}</span>
<button mat-stroked-button color="accent" (click)="afAuth.auth.signOut()">Logout</button> <button mat-stroked-button color="accent" (click)="afAuth.auth.signOut()">Logout</button>
</div> </div>
<mat-icon *ngIf="cart.length" class="ml-3" style="transform: translateY(6px)" [matBadge]="cartItemCount()" matBadgeColor="warn" [routerLink]="['/cart']">shopping_cart</mat-icon> <button *ngIf="cart.length" mat-icon-button class="ml-3" [routerLink]="['/cart']">
<mat-icon style="transform: translateY(6px)" [matBadge]="cartItemCount()" matBadgeColor="warn">
shopping_cart
</mat-icon>
</button>
</div> </div>
</div> </div>
</div> </div>