export class InferencePageComponent implements OnInit {
constructor(private campaignService: CampaignService) {
this.campaignService.getStrategy1().subscribe(data => {
this.Strategy1 = data;
});
this.campaignService.getStrategy2().subscribe(data => {
this.Strategy2 = data;
});
this.campaignService.getStrategy3().subscribe(data => {
this.Strategy3 = data;
});
}
I have data coming from 3 different functions of a service as above. I also have a function that takes data loaded from these 3 services and does some processing on that. But I am not able to load the function after all these 3 services have fully loaded. What should be the right approach?