RESTFUL call with $http.

See how we separated the call in a factory and how we use $log to log errors.