Does it make sense to have a base service, and if so is this a good way of doing it?
For sure its good design. Like in all Object Oriented languages its good practice to use Inheritance. The key benefit of Inheritance is that it provides the formal mechanism for code reuse. Any shared piece of business logic can be moved from the derived service into the base service as part of re-factoring process to improve maintainability of your code by avoiding code duplication.
If you have any comments on this approach, or any tips/recommendations ...
Regards to $resource documentation, the $resource('/posts/:id', {id: '@id'});
, from example returns promise
. Because $resource
depends on $http
. Not all services are async. If I have a lot of services I would sort them (or sign by adding some post-fix) that these services are async.