I'm building out a service layer in Angular for an existing web app. Moving $http requests and data massaging into Angular custom services. I understand the Dependency Injection part of services but I'm struggling with the success/error and passing that back to the controller.
I see some people using promises with $q. Is there an easier "then()" syntax for the promises if you are doing single REST API calls per service call? Note: The backend is non-standard REST so $resource strategy would not work for me. I'm having trouble telling what the latest recommended way of dealing with promises/callbacks from services. Callback seems simple if all you care about is the success condition. Is there a great recent example app that shows this aspect of services well? or articles?