7 changed files with 70 additions and 48 deletions
Split View
Diff Options
-
10Angular-UrbanBazaar/src/app/components/cart/cart.component.html
-
14Angular-UrbanBazaar/src/app/components/cart/cart.component.ts
-
18Angular-UrbanBazaar/src/app/components/checkout/checkout.component.css
-
44Angular-UrbanBazaar/src/app/components/checkout/checkout.component.html
-
28Angular-UrbanBazaar/src/app/components/checkout/checkout.component.ts
-
2Angular-UrbanBazaar/src/app/components/page-nav-bar/page-nav-bar.component.css
-
2Angular-UrbanBazaar/src/app/components/page-nav-bar/page-nav-bar.component.html
@ -1,23 +1,25 @@ |
|||
<ng-container *ngIf="cartdetails.length !=0"> |
|||
<div class="container"> |
|||
<table> |
|||
<thead> |
|||
<tr> |
|||
<th>S.No</th> |
|||
<th>ProductName</th> |
|||
<th>ProductPrice</th> |
|||
</tr> |
|||
</thead> |
|||
<div class="container"> |
|||
<div class="card-table"> |
|||
<table class="table"> |
|||
<thead> |
|||
<tr> |
|||
<th>S.No</th> |
|||
<th>ProductName</th> |
|||
<th>ProductPrice</th> |
|||
</tr> |
|||
</thead> |
|||
|
|||
<tbody> |
|||
<tr *ngFor="let c of cartdetails; let i = index"> |
|||
<td>{{i+1}}</td> |
|||
<td>{{c.productname}}</td> |
|||
<td>{{c.productprice}}</td> |
|||
</tr> |
|||
<td><strong>Grand Total : Rs.{{grandTotal}}</strong></td> |
|||
</tbody> |
|||
</table> |
|||
<button (click)=logout() class="CartButtons">log out</button> |
|||
</div> |
|||
</ng-container> |
|||
<tbody> |
|||
<tr *ngFor="let c of cartdetails; let i = index"> |
|||
<td>{{i+1}}</td> |
|||
<td>{{c.productname}}</td> |
|||
<td>{{c.productprice}}</td> |
|||
</tr> |
|||
<td><strong>Grand Total : Rs.{{grandTotal}}</strong></td> |
|||
</tbody> |
|||
</table> |
|||
</div> |
|||
<button class="logout" (click)=logout() class="CartButtons">log out</button> |
|||
</div> |
|||
</ng-container> |
|||
Write
Preview
Loading…
Cancel
Save
Reference in new issue