import { Injectable } from '@angular/core';
import { Product } from '../products/product';

@Injectable({
  providedIn: 'root'
})
export class CartService {

  constructor() { }
  cart: Product[] = [];

  addProduct(product: Product) {
    this.cart.push(product);
 }


}
