Created
September 14, 2022 10:01
-
-
Save CarlesRa/bedf2f0af4bd10e9747b31a85d9c7ae1 to your computer and use it in GitHub Desktop.
forkJoin do a forkJoin #f-join
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
forkJoin([ | |
this.taxService.getAll(), | |
this.bookableSequenceService.getAll(), | |
this.bookableContractService.getAll(), | |
this.extranetUserService.getAll(), | |
this.emailEventNotificationService.getAll(), | |
this.cacheService.getReferenceInfo([SIME_CONFIG.REFERENCES_IDS.SysCountry]), | |
this.adTableService.load(SIME_CONFIG.TABLE_IDS.GLB_ESTABLISHMENT) | |
]).subscribe({ | |
next: (resp) => { | |
this.iTaxList = resp[0]; | |
this.iBookableSequenceList = resp[1]; | |
this.iBookableContractList = resp[2]; | |
this.iExtranetUserList = resp[3].filter(eu => eu.idClient !== '0'); | |
this.iEventEmailConfigurationList = resp[4]; | |
this.sysCountryReference = resp[5].find(ref => ref.idReference === SIME_CONFIG.REFERENCES_IDS.SysCountry); | |
this.table = resp[6]; | |
}, | |
error: (err) => console.log(err), | |
}) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment