LT
Size: a a a
E
LT
E
DD

BO
this.allItems$ = this.journalService.getJournalClientItems(id)
.pipe(
tap(items => {
items.forEach(item => item['j_name'] = this.getClientName(item.j_obj_id))
}),
shareReplay(1),
);
this.data$ = this.allItems$
.pipe(
switchMap(items => merge(...items.map(item => this.service.getById(item.worker_id)))),
);
<div *ngFor="let item of allItems$ | async"></div>
<div *ngFor="let dataItem of data$ | async"></div>
А
А
BO
С
DD
С
DD
DD
LT
this.allItems$ = this.journalService.getJournalClientItems(id)
.pipe(
tap(items => {
items.forEach(item => item['j_name'] = this.getClientName(item.j_obj_id))
}),
shareReplay(1),
);
this.data$ = this.allItems$
.pipe(
switchMap(items => merge(...items.map(item => this.service.getById(item.worker_id)))),
);
<div *ngFor="let item of allItems$ | async"></div>
<div *ngFor="let dataItem of data$ | async"></div>
BO
LT
BO
this.allItems$ = this.journalService.getJournalClientItems(id)
.pipe(
switchMap(items => merge(...items.map(item => this.clientsService.getCLientById(item.worker_id)
.pipe(
tap(client => item['j_name'] = client.first_name),
mapTo(item),
)
)))
);
LT
this.allItems$ = this.journalService.getJournalClientItems(id)
.pipe(
switchMap(items => merge(...items.map(item => this.clientsService.getCLientById(item.worker_id)
.pipe(
tap(client => item['j_name'] = client.first_name),
mapTo(item),
)
)))
);