Skip to content

Commit

Permalink
product now uses img instead of b64
Browse files Browse the repository at this point in the history
  • Loading branch information
SteveRusin committed Oct 4, 2017
1 parent b83b8d8 commit 20a4f9b
Show file tree
Hide file tree
Showing 2 changed files with 314 additions and 309 deletions.
46 changes: 23 additions & 23 deletions src/app/homepage/view-one-product/view-one-product.component.html
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>
Loading

0 comments on commit 20a4f9b

Please sign in to comment.