import { Component, OnInit, Input } from '@angular/core'; import { SoldTournamentTicket } from 'tournee.businesslogic'; @Component({ selector: 'app-sold-ticket-summary', templateUrl: './sold-ticket-summary.component.html', styleUrls: ['./sold-ticket-summary.component.css'] }) export class SoldTicketSummaryComponent implements OnInit { @Input() Ticket: SoldTournamentTicket; @Input() BorderStyle: string = 'border-dark'; @Input() Style: string = "organiser_view"; // attendee_view, organiser_view constructor() { } ngOnInit() { if (this.Ticket.TotalOwed > 0) { this.BorderStyle = "border-danger"; } } }