Angular's $q promises provide a powerful abstraction over flow control - see [the official documentation]($q). If you tag your question with this tag consider also tagging it with [tag:promise]. This tag is also appropriate for questions about angular and promises not relaying to $q directly.

- Wiki
1 articles, 0 books.

The idea is simple enough – you want to create a service that captures the data and stores is and then notify the controller that the data has changed or refreshed. Let’s look at a few different approaches to help us understand how the $http service works with its custom promises.