import { Component , OnInit , Input } from '@angular/core' ; @ Component ( { selector : 'app-badge' , templateUrl : './badge.component.html' , styleUrls : [ './badge.component.scss' ] } ) export class BadgeComponent implements OnInit { @ Input ( ) displayNumber : number ; constructor ( ) { this . displayNumber = 0 ; } ngOnInit ( ) { } }