When running the following code, the configuration works fine, but an error is returned:
Uncaught Error: [$injector:unpr] Unknown provider: AngularyticsConsoleHandlerProvider <- AngularyticsConsoleHandler <- Angularytics
Code snippet:
angular.module('weather', ['ngRoute', 'angularytics']).
config(function(AngularyticsProvider){
AngularyticsProvider.setEventHandlers(['Console', 'GoogleUniversal']);
}).run(function(Angularytics){
Angularytics.init();
}).
controller(....
What's the issue?
This is how the dependencies are loaded in the html-head:
<script src="bower_components/angular/angular.js"></script>
<script src="bower_components/angular-route/angular-route.js"></script>
<script src="bower_components/angularytics/src/angularytics.js"></script>