Examples of using Angular web services including $http and $resource in an app