Hey there, I'm pretty new to Angular and looking for some guidance on how to implement a PUT update using angular $resource. I've been able to figure it out for all 'jobs' and one 'job', but I could use some assistance with integrating the 'update' into my code and understanding the syntax better. I checked out the documentation for $resource, but the example didn't quite click with me.
How should I approach this:
{ update: {method:'PUT' } }
and incorporate it into this snippet below?:
.factory('myApi', ['$resource', function ($resource) {
return {
Jobs: $resource('/api/jobs'),
Job: $resource('/api/jobs', { id: '@ref' })
}
}])
Thank you in advance for any assistance!