Joined May 2011
·
Posted to
Debugging "Unknown provider" error in Angular
over 1 year
ago
@clouddueling: if you're in Chrome and you need to debug minified code, you can do two things:
1) Go to the Scripts tag in Dev Tools, and click on the pause icon to turn on "Pause on exceptions".
2) Click on the two curly braces icon to turn on "Pretty print".
Now, you should be able to see where your page is erroring out.
From what your error describes, I'm guessing it may be .config(function($routeProvider) { ...});
which got minified to .config(function(b) { ... });
. Just a guess!
Posted to
Debugging "Unknown provider" error in Angular
over 1 year
ago
@adria: Sure, that's fair. Unfortunately, it's hard to know what 'B' actually is. You'd have to do a search for any services that's not wrapped within an array. Or use ngmin to automatically wrap them for you.
Achievements
1,332 Karma
185,817 Total ProTip Views

Altruist
Increase developer well-being by sharing at least 20 open source projects

Kona
Have at least one original repo where CoffeeScript is the dominant language

Mongoose
Have at least one original repo where Ruby is the dominant language

Raven
Have at least one original repo where some form of shell script is the dominant language

Epidexipteryx
Have at least one original repo where C++ is the dominant language

Python 3
Have at least three original repos where Python is the dominant language

Komodo Dragon
Have at least one original repo where Java is the dominant language

Walrus
The walrus is no stranger to variety. Use at least 4 different languages throughout all your repos

Forked
Have a project valued enough to be forked by someone else

Charity
Fork and commit to someone's open source project in need

Python
Would you expect anything less? Have at least one original repo where Python is the dominant language
@yadavkv
You have the filter function on the
$scope
, which doesn't work.You need to wire up your module like so: