angulars http service and an example of a promise