What are promises in Angular?

A promise represents a value that may not be known at the time it is created, and the built-in $q service in AngularJS provides a way to work with promises.