Skip to content

Instantly share code, notes, and snippets.


Omar Habash ohabash

View GitHub Profile
View cloudSettings
View Angular RXJS Combine Data in Observable
configsWithP(): any {
const configs = this.configsService.getConfigsList;
const product = (id) => this.bcProductService.getProductById(id);
this.test_configs = configs.pipe(flatMap( configs_ret => {
const final = (configs_ret as any[]).map(config => product(;
return zip(, (...args: any[]) => args).map(products => {
for (let i = 0; i < (configs_ret as any[]).length; i++) {
return configs_ret;
You can’t perform that action at this time.