Here, I've used forkJoin
from rxjs to subscribe to an array of observables parallelly. But I want to subscribe to them one by one, What will be the best solution?
Below is my code :
var observables = [];
Observable.forkJoin(observables)
.subscribe(() => {
this.msgs = [];
this.msgs.push({
severity: 'success',
summary: 'Saved Successfully'
});
this.onSaveComplete();
}, (error: any) => this.errorMessage = <any>error);
}, (error: any) => this.errorMessage = <any>error);