Skip to content

Commit

Permalink
More cleanup.
Browse files Browse the repository at this point in the history
  • Loading branch information
mosh-hamedani committed Aug 25, 2017
1 parent 5d4e8ae commit e0d283c
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 3 deletions.
2 changes: 1 addition & 1 deletion src/app/products/products.component.html
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
<product-filter [category]="category"></product-filter>
</div>
<div class="col">
<div class="row">
<div class="row" *ngIf="cart$ | async as cart">
<ng-container *ngFor="let p of filteredProducts; let i = index">
<div class="col">
<product-card [product]="p" [shopping-cart]="cart"></product-card>
Expand Down
3 changes: 1 addition & 2 deletions src/app/products/products.component.ts
Original file line number Diff line number Diff line change
@@ -1,11 +1,10 @@
import { ShoppingCart } from './../models/shopping-cart';
import { Observable } from 'rxjs/Observable';
import { Subscription } from 'rxjs/Subscription';
import { ShoppingCartService } from './../shopping-cart.service';
import { Product } from './../models/product';
import { ActivatedRoute } from '@angular/router';
import { ProductService } from './../product.service';
import { Component, OnInit, OnDestroy } from '@angular/core';
import { Component, OnInit } from '@angular/core';
import 'rxjs/add/operator/switchMap';

@Component({
Expand Down

0 comments on commit e0d283c

Please sign in to comment.