I am facing an issue while trying to use forkJoin with two behavior subject streams in Angular. I expected it to return the values of the two subjects, but it is not working as intended. Is there a way to make this work?
The subscriptions are not being triggered after updating the subjects.
const stream1 = new BehaviorSubject(2);
const stream2 = new BehaviorSubject('two');
Observable.forkJoin(stream1, stream2)
.subscribe(result => {
console.log(result);
});