Skip to main content

All Questions

Tagged with
0 votes
2 answers
46 views

How to make Cancellable api calls in loop in Angular?

I have a list containing parameters, such as: [ {a:1a,b:1b,c:1c}, {a:2a,b:2b,c:2c}, {a:3a,b:3b,c:3c} ] For each parameter object, I aim to initiate three consecutive API calls, each with ...
noob21's user avatar
  • 1
-1 votes
1 answer
129 views

How to rewrite rxjs code without making calls within the subcribe method?

Hi I am having an angular 5 project and rxjs library used. i have code snippet below. I would like to rewrite in a better way. export class AccountDetailsComponent implements OnInit { ngOnInit() ...
Starbucks Admin's user avatar
0 votes
2 answers
2k views

Angular - how to map observable inside array

I have an array of servers object where inside that array I have another observable array of objects, its key is [securityGroups]. ngOnInit(): void { forkJoin( this.serverService.getServer(),...
Dave's user avatar
  • 91
0 votes
1 answer
329 views

Angular 9 - Get value Inside Observable Array of objects

I have an array of servers object where inside that array I have another observable array of objects, its key is [securityGroups]. I have another array of securitygroupsArray, where I GET my API to ...
Dave's user avatar
  • 91
1 vote
1 answer
6k views

Subscribe to one observable twice from a component doesn't work

I got several components subscribing to my data service and they are all working fine. But in one of my components, I try to subscribe twice (inside ngOnInit and ngAfterViewInit) but this doesn't work....
Fth's user avatar
  • 115
0 votes
1 answer
1k views

How to wait for subscribe to finish Angular 5?

I am working on an Angular 5 app. I get an error because I have a function that executes before another function is done, hence getting a null variable. I have tried to use .map and .subscribe with ...
Fth's user avatar
  • 115
0 votes
1 answer
412 views

How to sequentially load data using rxjs? in each sequence might be several calls

const dates = [{start:'03/06/2020', end: '03/09/2020'}, {start:'03/12/2020', end: '03/03/2021'}, ...] const data = service.get(page = 1, dates[0]) and service.get(page = 2, dates[0]) returns data ...
Azim Sadikov's user avatar
0 votes
3 answers
98 views

Why forkJoin is not working for observers?

I have tried to emulate server requests: const _blocks$ = new BehaviorSubject<any[]>([]); const _fields$ = new BehaviorSubject<any[]>([]); Then I run two observers: of(true) ....
user avatar
0 votes
2 answers
1k views

Update value on header after Subject change

I'm working on a notification feature on a Angular 5 project. There's a property on header called notifications storing number of new notifications for that user. I want to dynamically update that ...
lsilva's user avatar
  • 187
-2 votes
1 answer
819 views

node_modules/angular-datatables/node_modules/rxjs/internal/types.d.ts(82,92): error TS1109: Expression expected

Full error:- ERROR in node_modules/angular-datatables/node_modules/rxjs/internal/types.d.ts(81,44): error TS1005: ';' expected. node_modules/angular-datatables/node_modules/rxjs/internal/types.d.ts(...
aslam's user avatar
  • 1
1 vote
1 answer
191 views

Multiple loading indicators shown above each other

I have an app made in ionic 3 in which I created a provider to centralize access to LoadingController. I have implemented the provider as the code shown below, and I thought it'd be enough to control ...
Diego Ferreira's user avatar
0 votes
1 answer
556 views

How can I get if a particular request has been completed using forkJoin in Angular 5 as part of parallel request processing?

I have a requirement to process the list of requests in parallel using forkJoin in Angular 5. I took reference from this link RxJS recipes: ‘forkJoin’ with the progress of completion for bulk network ...
Nithin's user avatar
  • 381
0 votes
1 answer
59 views

How can I pass the output of an http call as input to another http call in Rx JS?

Hi I am getting an error when i tries to do the following operation export class FlightFormTemplatesStepComponent { tagonMessagePrefix: TagOnMessagePrefix; ngOnInit() { this.flightService....
KnowledgeSeeker001's user avatar
0 votes
1 answer
544 views

fromEvent rxjs Angular 5 is not properly working

I have create radio buttons from an array i.e ['Yes','No'] <mat-radio-group class="tt" style="display: inline-block" formControlName="recursive" > <div class="opt" *ngFor="let t of ...
Benson OO's user avatar
  • 517
0 votes
1 answer
263 views

How to update clock from new time data from backend SignalR in intervals

Now i have the actual UTC time. From backend in SignalR data come with new time in 30 min interval. I have to update time in frontend from time from backend in every interval. I'm starting with time ...
voltdev's user avatar
  • 298

15 30 50 per page
1
2 3 4 5
10