import { Component, Input } from '@angular/core'; import { ThemePalette } from '@angular/material/core'; import { ProgressSpinnerMode } from '@angular/material/progress-spinner'; import { lastValueFrom, max } from 'rxjs'; import { Artist } from '../artist'; import { EventDetailsService } from '../event-details.service'; import { formatNumber } from '@angular/common'; @Component({ selector: 'app-artist-detail', templateUrl: './artist-detail.component.html', styleUrls: ['./artist-detail.component.css'] }) export class ArtistDetailComponent { @Input() artists: string[] = []; detailsLoaded: boolean = false; artistsDetails: Artist[]= []; constructor(private eventDetailService: EventDetailsService){} spinnerColor: ThemePalette = 'warn'; spinnerMode: ProgressSpinnerMode = 'determinate'; spinnervalue: number = 99; ngOnInit(){ this.getDetails(); } async getDetails(){ for(var i=0; i