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 dae4a2e commit 3092fd31bb933a1665b3ed55aec7f56b7a5ecee3
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 3092fd3

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