$provide outside config blocks
The purpose of the config() function is to allow you to perform some global configuration that will affect the entire application – that includes services, directives, controllers, etc. Because of that, the config() block must run before anything else. But, you still need a way to perform the aforementioned configuration and make it available to … Read more