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

HCL healthcare

 hcl health care f2f second round interview asked more uestions on microservice 1.apim manage all apis in one place 2.sql profiler in one fo...