import { ChangeDetectionStrategy , Component , OnInit , Input } from '@angular/core' ; import { Pot } from 'monzolib' ; import Debug = require ( 'debug' ) ; const debug = Debug ( 'app:component:pot-summary' ) ; @ Component ( { selector : 'm-pot-summary' , templateUrl : 'pot-summary.component.html' , styleUrls : [ 'pot-summary.component.css' ] , changeDetection : ChangeDetectionStrategy . OnPush } ) export class PotSummaryComponent implements OnInit { @ Input ( ) pot ! : Pot ; get imageUrl ( ) : string { return `./assets/monzo-pots-images/${ this . pot . style }.png` ; } ngOnInit ( ) { debug ( 'init' ) ; } }