Friday, 17 October 2025

Forked join exampl

 Used fork join to call dropdown list

loadDropdownData() {
  forkJoin({
    countries: this.masterservice.GetCountries(),
    divisions: this.masterservice.GetDivisions(),
    locations: this.masterservice.GetLocations()
  }).subscribe({
    next: (res:any) => {
      this.countries = res.countries;
      this.divisions = res.divisions;
      this.locations = res.locations;
      console.log(res);
    },
    error: (err) => {
      console.error('Error loading dropdown data', err);
    }
  });
}

No comments:

Post a Comment

Meet BootUI | Scan AI-Generated Code & Find What AI Missed !

 very usefull link to verify ai content https://www.youtube.com/watch?v=pULGt0Rme58 Click