Promises from $timeout()

Angular's $timeout() service also returns a promise. The same is true for a number of other AngularJS functions.