Currently in the process of creating a service layer for an existing web app using Angular. I am transitioning $http requests and data manipulation to custom Angular services. While I have a good understanding of Dependency Injection in services, I am encountering difficulties with handling success/error responses and passing them back to the controller.
I have observed some developers using promises with $q. For single REST API calls per service request, is there a simpler "then()" syntax available for promises? It's worth mentioning that the backend structure is not standard REST, so utilizing the $resource strategy is not feasible for my project. I am struggling to identify the most up-to-date best practices for managing promises/callbacks from services. Using callbacks seems straightforward if only the success condition needs to be addressed. Are there any recent exemplary applications or informative articles that demonstrate this aspect of services effectively?