File tree Expand file tree Collapse file tree 2 files changed +5
-4
lines changed Expand file tree Collapse file tree 2 files changed +5
-4
lines changed Original file line number Diff line number Diff line change 8
8
< div class ='row '>
9
9
< div class ='col-md-2 '> Filter by:</ div >
10
10
< div class ='col-md-4 '>
11
- < input type ='text ' />
11
+ < input [(ngModel)] =' listFilter ' type ='text ' />
12
12
</ div >
13
13
</ div >
14
14
< div class ='row ' >
15
15
< div class ='col-md-6 '>
16
- < h3 > Filtered by: </ h3 >
16
+ < h3 > Filtered by: {{listFilter}} </ h3 >
17
17
</ div >
18
18
</ div >
19
19
@@ -45,13 +45,13 @@ <h3>Filtered by: </h3>
45
45
{{product.productName}}
46
46
</ td >
47
47
< td >
48
- {{product.productCode}}
48
+ {{product.productCode | lowercase }}
49
49
</ td >
50
50
< td >
51
51
{{product.releaseDate}}
52
52
</ td >
53
53
< td >
54
- {{product.price}}
54
+ {{product.price | currency:'USD':true:'1.2-2' }}
55
55
</ td >
56
56
< td >
57
57
{{product.starRating}}
Original file line number Diff line number Diff line change @@ -9,6 +9,7 @@ export class ProductListComponent{
9
9
imageWidth : number = 50 ;
10
10
imageMargin : number = 2 ;
11
11
showImage : boolean = false ;
12
+ listFilter : string = 'cart' ;
12
13
products : any [ ] = [
13
14
{
14
15
"productId" : 1 ,
You can’t perform that action at this time.
0 commit comments