Edit The Code:
See Result »
Try it Yourself - ©
w3ii.com
{{content}}
The $http service executes different functions on success and failure.