Reputation: 21
Can I use either for a REST call ? Or is there some minor difference ? I have used both of them in my projects with no side effects,
Upvotes: 0
Views: 4943
Reputation: 544
These are the main differences between $http and $resource:
$http:
For more details about $http refer: https://docs.angularjs.org/api/ng/service/$http
$resource:
For more details about $resource refer: https://docs.angularjs.org/api/ngResource/service/$resource
You can find more answer here and here.
Upvotes: 5