Promise in Angular, is used with asynchronous tasks.
Promises return only a single value as
* data or output if promise resolves
* or error message if promise rejects
Request initiated by a promise is not cancellable. Promise was added in Angular from Angular 2.
An observable in comparison, handles multiple events similar to a stream.
Posted Date:- 2021-09-29 05:58:27