Promises in Javascript

If you belong to the group of people who have heard about promises but do not know what it is, then you have landed at the right place.
What is a promise?

Promise is like a proxy object that represents a value that will be available at a future point of time. This object will be available as a result of some asynchronous computation, asynchronous call to an api or any operation that will happen in near future, the value of which is not known at the given point of time.

Angular js vs angular 2

Angular js was introduced in 2009 as framework to develop single page applications, popularly known as SPA’s. From here it has come a long way and has become an integral part and is widely used in today’s web applications.

Angular 2 was introduced in 2014. Angular 2 is different from angular js in a variety of advanced features and the way things are handled.