File tree Expand file tree Collapse file tree 3 files changed +17
-9
lines changed
components/items-list-item Expand file tree Collapse file tree 3 files changed +17
-9
lines changed Original file line number Diff line number Diff line change 2
2
< mat-card (click) ="handleCardClick($event) ">
3
3
< mat-card-content >
4
4
< div class ="row ">
5
- < div class ="col-md-3 ">
5
+ < div class ="col-md-12 ">
6
6
< img class ="items-list-item__img " [src] ="item.image " [alt] ="item.label " />
7
7
</ div >
8
- < div class ="col-md-9 ">
9
- < p >
10
- {{item.label}}
11
- </ p >
8
+ </ div >
9
+ < div class ="row ">
10
+ < div class ="col-md-12 ">
11
+ < h4 *ngIf ="item.label ">
12
+ < strong > {{item.label}}</ strong >
13
+ </ h4 >
12
14
< p *ngIf ="item.color ">
13
- Color: {{item.color}}
15
+ < strong > Color:</ strong > {{item.color}}
16
+ </ p >
17
+ < p *ngIf ="item.category ">
18
+ < strong > Category:</ strong > {{item.category}}
14
19
</ p >
15
- < p >
16
- Price: {{currencySymbol}}{{item.cost}}
20
+ < p *ngIf =" item.cost " >
21
+ < strong > Price:</ strong > {{currencySymbol}}{{item.cost}}
17
22
</ p >
23
+ < button mat-raised-button color ="primary "> More Info</ button >
18
24
</ div >
19
25
</ div >
20
26
</ mat-card-content >
Original file line number Diff line number Diff line change @@ -28,6 +28,7 @@ <h1>Checkout</h1>
28
28
</ div >
29
29
< div class ="col-md-10 ">
30
30
< p > {{item.brand}} - {{item.label}}</ p >
31
+ < p > < strong > Category: {{item.category}}</ strong > </ p >
31
32
< p > < strong > Price per item: </ strong > {{currencySymbol}}{{item.cost}}</ p >
32
33
< p >
33
34
< strong > Change Quantity: </ strong >
Original file line number Diff line number Diff line change @@ -17,7 +17,8 @@ <h1>Product Details</h1>
17
17
</ div >
18
18
< div class ="col-md-7 ">
19
19
< p > < strong > Label</ strong > : {{item.label}}</ p >
20
- < p > < strong > Price</ strong > : {{currencySymbol}}{{item.cost}}</ p >
20
+ < p > < strong > Category</ strong > : {{item.category}}</ p >
21
+ < p > < strong > Price per item</ strong > : {{currencySymbol}}{{item.cost}}</ p >
21
22
< p > < strong > Items Available</ strong > : {{getItemsAvailable()}}</ p >
22
23
< p [innerHtml] ="item.description "> </ p >
23
24
< button (click) ="handleAddToCardClick() " [disabled] ="!getItemsAvailable() " mat-raised-button color ="primary " class ="item-description__add-card "> Add To Cart</ button >
You can’t perform that action at this time.
0 commit comments