1- import { FilterByBrandPipe } from " ./../shared/filterByBrand.pipe" ;
2- import { AuthService } from " ./../../index/shared/auth.service" ;
3- import { Product } from " ./../model/product" ;
4- import { ProductService } from " ./../shared/product.service" ;
5- import { Component , OnInit } from " @angular/core" ;
6- import { LoaderSpinnerService } from " ../../modules/loader-spinner/loader-spinner" ;
7- import { ToastyConfig , ToastOptions , ToastyService } from " ng2-toasty" ;
1+ import { FilterByBrandPipe } from ' ./../shared/filterByBrand.pipe' ;
2+ import { AuthService } from ' ./../../index/shared/auth.service' ;
3+ import { Product } from ' ./../model/product' ;
4+ import { ProductService } from ' ./../shared/product.service' ;
5+ import { Component , OnInit } from ' @angular/core' ;
6+ import { LoaderSpinnerService } from ' ../../modules/loader-spinner/loader-spinner' ;
7+ import { ToastyConfig , ToastOptions , ToastyService } from ' ng2-toasty' ;
88
99@Component ( {
10- selector : " app-product-list" ,
11- templateUrl : " ./product-list.component.html" ,
12- styleUrls : [ " ./product-list.component.scss" ]
10+ selector : ' app-product-list' ,
11+ templateUrl : ' ./product-list.component.html' ,
12+ styleUrls : [ ' ./product-list.component.scss' ]
1313} )
1414export class ProductListComponent implements OnInit {
1515 productList : Product [ ] ;
1616
17- brands = [ " All" , " Google" , " Apple" , " Samsung" , " OnePlus" , " Lenovo" , " Nokia" ] ;
17+ brands = [ ' All' , ' Google' , ' Apple' , ' Samsung' , ' OnePlus' , ' Lenovo' , ' Nokia' ] ;
1818
19- selectedBrand : " All" ;
19+ selectedBrand : ' All' ;
2020
2121 page = 1 ;
2222 constructor (
@@ -39,7 +39,7 @@ export class ProductListComponent implements OnInit {
3939 this . productList = [ ] ;
4040 product . forEach ( element => {
4141 const y = element . payload . toJSON ( ) ;
42- y [ " $key" ] = element . key ;
42+ y [ ' $key' ] = element . key ;
4343 this . productList . push ( y as Product ) ;
4444 } ) ;
4545 } ) ;
0 commit comments