From 0e9e0af9755232ef3ac4858379cc155444a9ba5c Mon Sep 17 00:00:00 2001 From: Andrew O'Brien Date: Wed, 3 Jul 2013 11:51:56 -0400 Subject: docs(guide/directive): make directive controller minification-safe It is best to emphasize that the "controller" property needs to be min safe Closes #3125 --- docs/content/guide/directive.ngdoc | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'docs') diff --git a/docs/content/guide/directive.ngdoc b/docs/content/guide/directive.ngdoc index 7e0860e0..57cdebfe 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) { ... }, -- cgit v1.2.3