What are promises in AngularJS?
Here’s an example of a promise object in Angular:
var promise = getData()
Suggest An Answer
A promise represents the eventual result of an operation. You can use a promise to specify what to do when an operation eventually succeeds or fails.