Angular promises vs observables
HTML-код
- Опубликовано: 8 сен 2024
- Text version of the video
csharp-video-tu...
Healthy diet is very important both for the body and mind. If you like Aarvi Kitchen recipes, please support by sharing, subscribing and liking our RUclips channel. Hope you can help.
/ @aarvikitchen5572
Slides
csharp-video-tu...
Angular 2 Tutorial playlist
• Angular 2 tutorial for...
Angular 2 Text articles and slides
csharp-video-tu...
All Dot Net and SQL Server Tutorials in English
www.youtube.co...
All Dot Net and SQL Server Tutorials in Arabic
/ kudvenkatarabic
In this video we will discuss the differences between promises and observables. In Angular 2, to work with asynchronous data we can use either Promises or Observables. In our previous videos in this series, we discussed using both Observables and Promises. There are several differences between Promises and Observables. In this video let's discuss these differences.
A Promise emits a single value where as an Observable emits multiple values over a period of time. You can think of an Observable like a stream which emits multiple items over a period of time and the same callback function is called for each item emitted. So with an Observable we can use the same API to handle asynchronous data whether that data is emitted as a single value or multiple values over a period of time.
A Promise is not lazy where as an Observable is Lazy.
A Promise cannot be cancelled where as an Observable can be cancelled using the unsubscribe() method
Observable provides operators like map, forEach, filter, reduce, retry, retryWhen etc
Really salute your efforts. Even in the mid night you work and upload videos for us !!!
He's based in UK. So, time difference is the reason.
Thank you Venkat for making these. You're the man!
Thanks you so much venkat for these awesome easy to follow tutorials . Your examples deal with practical real world problems. I am able to shorten the learning curve for angular with ur help.
OMG !!! Great explanation, huge contribution to the society.
One of the best teacher on youtube......👏👏
Best Tutor in the world.
Hey, you're fantastic! Super clear and efficient videos, easy to follow and understand tough topics. You make coding that much more fun. Kudos!
What an excellent tutorial.
Thank you so much for your efforts and a very clear understanding of the concept.
Dear sir can you make a series on design pattern in c# after you are done with this series? You have a gift to break down things in way that is easily understood
What exactly mean by observable emits multiple values?
Can you please explain?
Can you please explain the first diffrence with an example. So we will know the actual working of promise and observable.
How promise emits single value and observable emits multiple values?
It will really helpful for us, thanks in advance.
Such a great explanation!! Thank you.
This was very helpful!
Awesome video. Very clear, thank you!
Hii kudvenkat,
Nice explanation. But having one doubt i.e. difference between Emitting a single value (In case of promise) and Emitting multiple values (In case of Observable).
Can you please it explain in detail.
Thank you for your great explanation
Thanks sir, this is to good. i am waiting for your next video how to check authentication and authorisation in angular login.
Hi kudvenkat,
Can u do some video/tutorial about signalR technology?
Hi Kudvenkat
Now a days Interviewers are confusing us about promises and Observables,
Can you please very strong use case when only use promise Vs when only use Observable
Natural explaination ! 👌
Hi venkat, I have a question for You, I was developed on mobile app by using angular and ionic, it is chatting application, so same app is in webside but it is javascript and html, jquery etc. I want to use emoji's should support for mobile and web , so please guide me am unable to do
Thanks Venkat.
Another awesome lesson, thanks!
This is the good one! Thank you!
thank you sir, It clears all my doubt
really thanks for your efforts !
Great Tutorial.
I have the following question
what changes will be required in on web API get method to send the multiple responses as a stream for the single request so that it can be handled in observable
Example
Get the progress (0 to 100) from web API to angular service.
Thanks you Sir for your efforts :)
it means if want to get single data we should use promises and for multiple data we should go for observable, right?
Very nice explanation, really helpfull !
but i did not get how promise emits a single value & observable emits multiple values ?
pls explain with example
its not correct, but I can explain you. suppose there is a input box,you type your name or anything in it, "Peter", .. while typing Peter, observable will be call each time and give you values on each change:- P, Pe, Pet, pete, peter. but in promises it will call one time and give you peter.
Awesome. Thanks!
Thanks for the video sir, I have couple of queries, we are using promise then what is the use of resolve and reject methods in promise.
90k views in the first video while there are only 90 views in this one. I feel so special to be one now
Thanks
Salute !!!!
nice and clear, thanks
thanks sir
I still have the problem where I click on one of the links for emp and I always get emp101 back. The problem with your videos is that they build on earlier tutorials and don't include the complete code. So, since I received an error from an earlier tutorial and can't fix the error, the error just gets carried over to the newer tutorials. I see in developer tools that when I click on say emp103, with a break point on "this.employee = employeeData;", I get "ReferenceError: empCode is not defined".
At 3:00 line 60 what is that syntax called and do you know where I can find documentation on it?
What is meant by emit multiple values over period of time ??
thanks..
Perfect... What do you mean stream of events whether objects or values. Confused!!!!!!!!
great
What is a _forward_ slash?
I want to deploy angular2 app on IIS. Can you please help me out?
how to use async await in angular 5?
Genius
anyone reply me how to solve this error. the error is the module, controller or $http is not defined please reply me as fast as possible.
Your explanation lacks the actual difference that it emits multiple values over the period of time
its too much lagging....not complete defination
Makes videos on nodejs