Skip to content

Commit d54ba65

Browse files
committed
2 parents 7d00f6c + de37a09 commit d54ba65

File tree

4 files changed

+17
-17
lines changed

4 files changed

+17
-17
lines changed

package.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -11,10 +11,10 @@
1111
"lint": "ng lint",
1212
"e2e": "ng e2e",
1313
"postinstall": "ng build --aot -prod",
14-
"deploy": "git push origin master && git push heroku master"
14+
"deploy": "git push && git push heroku"
1515
},
1616
"engines": {
17-
"node": "8.11.1",
17+
"node": "8.11.0",
1818
"npm": "5.6.0"
1919
},
2020
"private": true,

src/app/product/product-list/product-list.component.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -96,4 +96,4 @@ <h5 class="card-title">
9696
</div>
9797
</div>
9898
<app-add-product></app-add-product>
99-
<ng2-toasty></ng2-toasty>
99+
<ng2-toasty></ng2-toasty>

src/app/product/product-list/product-list.component.ts

Lines changed: 13 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -1,22 +1,22 @@
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
})
1414
export 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
});

tslint.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -56,7 +56,7 @@
5656
"check-whitespace"
5757
],
5858
"prefer-const": true,
59-
"quotemark": [true, "double"],
59+
"quotemark": [true, "single"],
6060
"radix": true,
6161
"semicolon": [true, "always"],
6262
"triple-equals": [true, "allow-null-check"],

0 commit comments

Comments
 (0)