Is there a way I can execute some JavaScript code at start-up of my AngularJS application? I have some common code that I need to make sure runs before any of the app directives
You can use the "run" function from the Module API: http://docs.angularjs.org/api/angular.Module
This code will be executed after injector creation so you should be able to get at the service you are looking to use.