close

I want to use combineLatest function to combine data from firestore. The data from firestore is observable which is exactly combineLastest required.

What RxJS website stated about combineLatest is

Combines multiple Observables to create an Observable whose values are calculated from the latest values of each of its input Observables.

However, when I used combineLatest to combine two observable data, I got a hint.

The declaration was marked as deprecated here.

 

Finally, I solved this problem by updating RxJS library.

Use the statement on cmd

npm install rxjs

And my program works now.

 

 

 

arrow
arrow
    文章標籤
    Angular Typescript Firestore
    全站熱搜

    名譽瑪雷人 發表在 痞客邦 留言(0) 人氣()