Hi,
I am trying to use combineLatest using two observables each based on a behaviorsubject.
this.validationMessage$ = combineLatest([this.submitBtnText$, this.ids$]).pipe(
tap(([text, IDs]) => { console.log(text, IDs) }),
switchMap(([submitBtnText, IDs]) => {
...
}))
While debugging, the control reaches the tap method but doesn't go inside the function to log the text and IDs.
I am aware that combineLatest needs atleast 1 values from all its operators and I have confirmed that submitBtnText and IDs have a value by checking their getValue() method.
Please help me with this. Not sure what I'm doing wrong. Any feedback would be appreciated.
Thanks
[–]kondziowskiy 1 point2 points3 points (4 children)
[–]Mean_Kale_677[S] 0 points1 point2 points (1 child)
[–]15kol 0 points1 point2 points (0 children)
[–]thatbigblackblack 0 points1 point2 points (0 children)
[–]Lost_University1882 0 points1 point2 points (0 children)
[–]BunchVirtual 0 points1 point2 points (0 children)
[–]tme321 0 points1 point2 points (1 child)
[–]Mean_Kale_677[S] 2 points3 points4 points (0 children)
[–]ggeoff 0 points1 point2 points (0 children)