diff --git a/docs/content/guide/directive.ngdoc b/docs/content/guide/directive.ngdoc index 7e0860e09fe6..57cdebfe058e 100644 --- a/docs/content/guide/directive.ngdoc +++ b/docs/content/guide/directive.ngdoc @@ -269,7 +269,8 @@ Here's an example directive declared with a Directive Definition Object: transclude: false, restrict: 'A', scope: false, - controller: function($scope, $element, $attrs, $transclude, otherInjectables) { ... }, + controller: ["$scope", "$element", "$attrs", "$transclude", "otherInjectables", + function($scope, $element, $attrs, $transclude, otherInjectables) { ... }], compile: function compile(tElement, tAttrs, transclude) { return { pre: function preLink(scope, iElement, iAttrs, controller) { ... },