I am using Rxjs
in an angualr-cli
application.
in viewer.component.ts
//Other Imports
import { Observable } from \'rxj
Use the forkJoin Operator as a function by importing forkJoin instead of importing Observable.
Use forkJoin.subscribe() in place of Observable.forkJoin.subscribe()
import { forkJoin } from 'rxjs/observable/forkJoin'
export class ViewerComponent implements OnInit, AfterViewInit, OnDestroy {
someFunction(someArg){
let someArray: any = [];
forkJoin(someArray).subscribe(data => {
});
}
}
Source Code : https://github.com/ReactiveX/rxjs/blob/master/src/internal/observable/forkJoin.ts