diff options
| author | Andrew O'Brien | 2013-07-03 11:51:56 -0400 | 
|---|---|---|
| committer | Pete Bacon Darwin | 2013-07-04 00:29:10 +0100 | 
| commit | 36447cb2b53c8d40d76f955366aeb7e33cc70a80 (patch) | |
| tree | 5a8713f78918deb233eeab50202e308e34fccace | |
| parent | 3b2c6f09cb857b86641cefde5b92d84d58c1118d (diff) | |
| download | angular.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
| -rw-r--r-- | docs/content/guide/directive.ngdoc | 3 | 
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) { ... },  | 
