import { Component , Input } from '@angular/core' ; import { Cart , CartService } from './cart.service' ; @ Component ( { selector : 'db-cart-menu' , templateUrl : 'app/cart/cart-menu.component.html' } ) export class CartMenuComponent { private cart : Cart ; constructor ( private cartService ) { this . cart = this . cartService . cart ; } }