Author: bhawna

Promise vs Observable in Angular

In Angular, we can use either Promise or Observable for handling asynchronous data. Both get and post method of Http and HttpClient return Observable and it can be converted into Promise using toPromise() method. So, what’s the difference when they both are dealing with asynchronous data. What actually the difference is? Promise emits a single value while Observable emits multiple values.┬áSo, while handling a HTTP Continue Reading

%d bloggers like this: