Simple question.
I have this resource:
var Company = $resource("/company/:_id", {_id: "@_id"});
That I want to share between different controllers.
Right now, I am copy-pasting things around but I am still not at the point where I want to add more code and use angular shared services
Any other option ?
Just put in a service or factory.
and then you can use it in the controller with
Note that you do not need the $ sign in front of the factory name.