I am a Full stack .NET Developer, I like to work with C#, Asp.Net Core, SQL, Mongo DB, Azure, JavaScript...
Always eager to learn new technologies. I am here to share, ask & eventually learn.
In some Angular tutorials, RxJs is used to make simple http call to API. Is the purpose RxJs is just to make Ajax call or there any particular use case to switch to RxJs?
By the way, Below RxJs video made it simple to understand.
Hi Michael, you can convert Angular HTTP to Promise . See getData method in stackblitz.com/edit/rxjs-vs-promis...
Also developers are not obliged to use http, you can use fetch or some techiques. Http just adds additional useful features.
In some Angular tutorials,
RxJs
is used to make simplehttp
call toAPI
. Is the purposeRxJs
is just to makeAjax
call or there any particular use case to switch toRxJs
?By the way, Below
RxJs
video made it simple to understand.youtube.com/watch?v=eUYigtm3Sdc
I just updated the blog, with and without RxJs example. Thanks.
You cant uncouple RxJs from the Angular HTTP API.
You cant uncouple RxJs from the Angular HTTP API.
Hi Michael, you can convert Angular HTTP to Promise . See getData method in stackblitz.com/edit/rxjs-vs-promis...
Also developers are not obliged to use http, you can use fetch or some techiques. Http just adds additional useful features.
It is really good to use angular http api (rxjs observable) when you want the ability to cancel any request by unsubscribing the subscription
The async pipe IS extremely nice
Indeed