diff --git a/docs/content/error/$injector/unpr.ngdoc b/docs/content/error/$injector/unpr.ngdoc index ade8b3d1..f4ceaef9 100644 --- a/docs/content/error/$injector/unpr.ngdoc +++ b/docs/content/error/$injector/unpr.ngdoc @@ -54,4 +54,18 @@ angular.module('myModule') .directive('myDirective', ['myCoolService', function (myCoolService) { // This directive definition does not throw unknown provider. }]); -``` \ No newline at end of file +``` + + +Attempting to inject one controller into another will also throw an `Unknown provider` error: + +``` +angular.module('myModule', []) + .controller('MyFirstController', function() { /* ... */ }); + .controller('MySecondController', ['MyFirstController', function(MyFirstController) { + // This controller throws an unknown provider error because + // MyFirstController cannot be injected. + }]); +``` + +Use the `$controller` service if you want to instantiate controllers yourself.