Added cart

This commit is contained in:
2018-07-19 21:43:19 -04:00
parent 4924a72509
commit 985a8eb457
4 changed files with 54 additions and 1 deletions

View File

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