Skip to content
Permalink
Browse files

docs(error/unpr): add hint about using `ngStrictDi`

The unknown provider error often happens when code is minified and one
did not use the correct syntax that supports minification. It's
frustrating to have to hunt for a bug in minified code, so adding the
simple hint that `ngStrictDi` will tell you what is wrong in the original
code will save you quite some trouble.

Closes #12717
  • Loading branch information
toebu authored and petebacondarwin committed Aug 31, 2015
1 parent 5df2e5c commit ce8a7525cc3b0f3a6a1ea90cad29c3dfae90ebeb
Showing with 3 additions and 0 deletions.
  1. +3 −0 docs/content/error/$injector/unpr.ngdoc
@@ -81,3 +81,6 @@ angular.module('myModule', [])
// a scope object cannot be injected into a service.
}]);
```

If you encounter this error only with minified code, consider using `ngStrictDi` (see
{@link ng.directive:ngApp ngApp}) to provoke the error with the non-minified source.

0 comments on commit ce8a752

Please sign in to comment.
You can’t perform that action at this time.