News for hackers. Stuff that matters.
Re:Angular 11 by dmm on Thursday November 12, 2020 @08:07AM (#25069407)
> I also didn't like using observables with Angular to fetch/send data to API's. Not everything is an event stream, why can't we use the right tool for the job?

I think the idea is to provide a single async abstraction so everything can be used with rxjs operators. I've taken advantage of this several times with something like "combineLatest" to return the result of a http call and an event stream.

You can also call "toPromise" in rxjs to turn an observable into a then-able promise.

There are no comments on this comment yet.