I have the following code, but I'm not sure how to add a success/error handler to the request.
$resource('/example.json', {}, {
get_something:
method: 'POST'
url: '/example/get_something.json'
})
I thought I would be able to add success:
or something similar here, but apparently that's not the case. How can I do something after this request is completed?