Is there a way that I can execute some JavaScript code when running my AngularJS application? I have a generic code that I need to make sure that it runs before any application directives / controllers. I donβt want to be attached to routes and ng-view , I need this to be a general solution for any ng-app .
I thought I could use Module Config, and I really tried this, but I'm trying to call a service that seems impossible to access module loading.
angularjs
Michel Habib Oct 09 '13 at 15:20 2013-10-09 15:20
source share