1 import { Component, OnInit } from '@angular/core';
2 import { CartService } from '../cart.service';
6 templateUrl: './cart.component.html',
7 styleUrls: ['./cart.component.css']
9 export class CartComponent implements OnInit {
13 constructor(private cartService: CartService) { }
16 this.items = this.cartService.getItems();