Question: what is the difference between $http and $resource?
Answer: $http is normal ajax, it can be used for any form of web service. $resource is specifically for RESTful service. ... A factory which creates a resource object that lets you interact with RESTful server-side data sources.