From 422aaa3e62efe61d67d02dad0c1dcd3b46bb15e8 Mon Sep 17 00:00:00 2001 From: Tobias Leugger - Vibes Date: Mon, 31 Aug 2015 17:20:28 +0200 Subject: [PATCH] docs(error/unpr): Adding hint about 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. --- docs/content/error/$injector/unpr.ngdoc | 3 +++ 1 file changed, 3 insertions(+) diff --git a/docs/content/error/$injector/unpr.ngdoc b/docs/content/error/$injector/unpr.ngdoc index cbf687b4d77e..c057baf743c1 100644 --- a/docs/content/error/$injector/unpr.ngdoc +++ b/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.