unknown provider
isaacalves opened this issue · 1 comments
isaacalves commented
This must be a really simple issue but I can't solve that.
I'm getting this error:
Error: [$injector:unpr] http://errors.angularjs.org/1.4.9/$injector/unpr?p0=smoothScrollProvider%20%3C-
Installed "ngSmoothScroll": "~2.0.0" with Bower.
Is this how I'm supposed to inject it?
QuizApp.controller('QuizCtrl', ['smoothScroll', function(smoothScroll) { ...
Thanks
isaacalves commented
The problem is that I need to include 'smoothScroll' as a dependency in the module too and I was including only in the controller.