import { Component , OnInit , Input } from '@angular/core' ; @ Component ( { selector : 'app-card' , templateUrl : './card.component.html' , styleUrls : [ './card.component.css' ] } ) export class CardComponent implements OnInit { @ Input ( ) cardNumber : string ; @ Input ( ) name : string ; @ Input ( ) expiration : string ; constructor ( ) { } ngOnInit ( ) { } }