Examples of how to use Angular web-based services including $http and $resource