П
Size: a a a
П
S
П
П
SV
DP
if (this.depsMap.has(organizationId)) {
return this.depsMap.get(organizationId);
} else {
const repSub: ReplaySubject<Structure[]> = new ReplaySubject(1);
this.http.get<Structure[]>(`${apiURL}/departments/sidenav/${organizationId}`, httpOptions).subscribe(data => repSub.next(data));
this.depsMap.set(organizationId, repSub);
return repSub;
}
SV
S
S
DP
ВС
S
if (this.depsMap.has(organizationId)) {
return this.depsMap.get(organizationId);
} else {
const repSub: ReplaySubject<Structure[]> = new ReplaySubject(1);
this.http.get<Structure[]>(`${apiURL}/departments/sidenav/${organizationId}`, httpOptions).subscribe(data => repSub.next(data));
this.depsMap.set(organizationId, repSub);
return repSub;
}
S
S
DP
S
DP
S