Live Chat Icon For mobile
Live Chat Icon

What are promises in Angular?

Platform: Angular| Category: Architecture

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. When registered with a promise object, they allow for the execution of asynchronous functions in a specific order. Promises handle one asynchronous event at a time, and can be in three different states: pending, fulfilled, or rejected.

Share with

Related FAQs

Couldn't find the FAQs you're looking for?

Please submit your question and answer.