You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
not working. I get the following error:
Uncaught Error: [$injector:unpr] Unknown provider: AngularyticsConsoleHandlerProvider <- AngularyticsConsoleHandler <- Angularytics
The text was updated successfully, but these errors were encountered:
I was encountering this issue until I realized it was because I wasn't loading the consoleHandler.js file in the src directory of the repo, once I loaded that file the module began functioning.
I then realized that I really don't need the consoleHandler.js file (because it just logs stuff to the console for debug purposes) so I removed it from the setEventHandlers array and stopped loading the file.
The most simplistic code I can use to test this is this:
angular.module('weather', ['ngRoute', 'angularytics']).
config(function($routeProvider, AngularyticsProvider){
}).
controller...
working
but this:
angular.module('weather', ['ngRoute', 'angularytics']).
config(function($routeProvider, AngularyticsProvider){
}).run(function(Angularytics){
Angularytics.init();
}).
controller....
not working. I get the following error:
Uncaught Error: [$injector:unpr] Unknown provider: AngularyticsConsoleHandlerProvider <- AngularyticsConsoleHandler <- Angularytics
The text was updated successfully, but these errors were encountered: