Tuesday, 27 December 2016

angular - Difference between observables and promises in AngularJS.





Difference between observables and promises in AngularJS?
What are the changes with respect to promises and observables in angular 2 and angular 4 versions?
Examples that explain this scenario would help a lot.


Answer



Promise can handle only a single async task wheras observable can handle multiple of them with more features.




Please see this answer.


No comments:

Post a Comment

c++ - Does curly brackets matter for empty constructor?

Those brackets declare an empty, inline constructor. In that case, with them, the constructor does exist, it merely does nothing more than t...