Let\'s say we have the following service:
myApp.factory(\'FooService\', function () { ...
Then, from a controller, I would say:
Complementing question #1 (Global accesibillity) I will only add that in order to avoid issues when minifiying the file (if that's the case) it should be written like this:
this.app.run(["$rootScope", "Foo", function($rootScope, FooService) { return $rootScope.fooService = FooService; } ]);