If I have a utility function foo
that I want to be able to call from anywhere inside of my ng-app
declaration. Is there someway I can make it globally accessible in my module setup or do I need to add it to the scope in every controller?
If I have a utility function foo
that I want to be able to call from anywhere inside of my ng-app
declaration. Is there someway I can make it globally accessible in my module setup or do I need to add it to the scope in every controller?