-
Notifications
You must be signed in to change notification settings - Fork 6
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
b83b8d8
commit 20a4f9b
Showing
2 changed files
with
314 additions
and
309 deletions.
There are no files selected for viewing
46 changes: 23 additions & 23 deletions
46
src/app/homepage/view-one-product/view-one-product.component.html
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,34 +1,34 @@ | ||
<md-card> | ||
<div class="img-container"> | ||
<img src="{{ product.svg }}" alt=""> | ||
<img src="{{ product.svg }}" alt=""> | ||
</div> | ||
<div class="info"> | ||
<div class = "aboutTheProduct"> | ||
<h3>{{product.name}}</h3> | ||
<ul> | ||
<li><span>type:</span> {{product.type}}</li> | ||
<li><span>category:</span> {{product.category}}</li> | ||
<li><span>price:</span> {{product.price | currency:'USD':true}}</li> | ||
<ng-container *ngFor = "let template of templateTypes"> | ||
<ng-container *ngIf = "product.type === template.type" class="size"> | ||
<li> | ||
<md-select [(ngModel)]="mySize" placeholder="size" (ngModelChange)="setSize(mySize, product)"> | ||
<md-option *ngFor="let size of template.size" [value]="size"> | ||
{{size}} | ||
</md-option> | ||
</md-select> | ||
<!-- <select [(ngModel)]="mySize" (ngModelChange)="setSize(mySize, product)"> | ||
<div class="aboutTheProduct"> | ||
<h3>{{product.name}}</h3> | ||
<ul> | ||
<li><span>type:</span> {{product.type}}</li> | ||
<li><span>category:</span> {{product.category}}</li> | ||
<li><span>price:</span> {{product.price | currency:'USD':true}}</li> | ||
<ng-container *ngFor="let template of templateTypes"> | ||
<ng-container *ngIf="product.type === template.type" class="size"> | ||
<li> | ||
<md-select [(ngModel)]="mySize" placeholder="size" (ngModelChange)="setSize(mySize, product)"> | ||
<md-option *ngFor="let size of template.size" [value]="size"> | ||
{{size}} | ||
</md-option> | ||
</md-select> | ||
<!-- <select [(ngModel)]="mySize" (ngModelChange)="setSize(mySize, product)"> | ||
<option value="" disabled selected>Size</option> | ||
<option *ngFor="let size of template.size" [value]="size"> | ||
{{size}} | ||
</option> | ||
</select> --> | ||
</li> | ||
</ng-container> | ||
</li> | ||
</ng-container> | ||
</ng-container> | ||
</ul> | ||
</div> | ||
<button md-raised-button (click)="addToCart(product)">add to my card</button> | ||
<button md-raised-button *ngIf = "deleteButton" (click)="delete()">delete</button> | ||
</ul> | ||
</div> | ||
<button md-raised-button (click)="addToCart(product)">add to my card</button> | ||
<button md-raised-button *ngIf="deleteButton" (click)="delete()">delete</button> | ||
</div> | ||
</md-card> | ||
</md-card> |
Oops, something went wrong.