/handling-http

Examples for blog post Handling $http responses in an AngularJS Service

Primary LanguageJavaScript

Handling $http responses in an AngularJS Service

This is an example repo for a blog post [Handling $http responses in an AngularJS Service] (http://paulrichter.co/blog/dealing-with-http-responses-in-an-angularjs-service.html)

To use, clone the repo:

git clone https://github.com/paulgoblin/handling-http

Go to an example directory:

cd handling-http/then_example

and serve the files locally, in your style of choice:

ruby -run -e httpd . -p 8000

serve -p 8000

python -m SimpleHTTPServer

The examples are hitting my clog server by default. It's not the quickest or most reliable API, so feel free to experiment and hit your API of choice!