aboutsummaryrefslogtreecommitdiffstats
path: root/docs/content/guide/directive.ngdoc
diff options
context:
space:
mode:
authorAndrew O'Brien2013-07-03 11:51:56 -0400
committerPete Bacon Darwin2013-07-04 00:29:10 +0100
commit36447cb2b53c8d40d76f955366aeb7e33cc70a80 (patch)
tree5a8713f78918deb233eeab50202e308e34fccace /docs/content/guide/directive.ngdoc
parent3b2c6f09cb857b86641cefde5b92d84d58c1118d (diff)
downloadangular.js-36447cb2b53c8d40d76f955366aeb7e33cc70a80.tar.bz2
docs(guide/directive): make directive controller minification-safe
It is best to emphasize that the "controller" property needs to be min safe Closes #3125
Diffstat (limited to 'docs/content/guide/directive.ngdoc')
-rw-r--r--docs/content/guide/directive.ngdoc3
1 files changed, 2 insertions, 1 deletions
diff --git a/docs/content/guide/directive.ngdoc b/docs/content/guide/directive.ngdoc
index 50b4795e..ea7c73e6 100644
--- a/docs/content/guide/directive.ngdoc
+++ b/docs/content/guide/directive.ngdoc
@@ -244,7 +244,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) { ... },