import { Component, OnInit, Input } from '@angular/core'; import { GameSystem, TournamentDay } from 'tournee.businesslogic'; import { UtilityService } from 'src/app/shared/services/utility.service'; @Component({ selector: 'app-tournament-viewer-header-summary', templateUrl: './tournament-viewer-header-summary.component.html', styleUrls: ['./tournament-viewer-header-summary.component.css'] }) export class TournamentViewerHeaderSummaryComponent implements OnInit { @Input() TournamentLocationCountryName: string; @Input() Days: Array = []; @Input() GameSystems: Array = []; GameSystemNames: string; constructor(public utility: UtilityService) { } ngOnInit() { this.GameSystemNames = this.GameSystems.map((gs) => { return gs.name; }).join(', '); } }