I'm struggling to understand how to create services with the new 1.0 angular modules.
I put a JS Fiddle here:
My goal is to create a service called "Foo" which I can use in other controllers (like the FooCtrl) which wraps a resource.
I show in the fiddle what I used to do (use angular.service(...)) but this no longer is the way, right?
Any suggestions? What am I missing?
Also, with this new interface, do I still need to do FooCtrl.$inject = [ 'Foo' ]; (as long as I am minimizing...) or does this now handle this type of circumstance automatically since it is more explicit?
Chris