diff options
| author | Andrew O'Brien | 2013-07-03 11:51:56 -0400 | 
|---|---|---|
| committer | Pete Bacon Darwin | 2013-07-04 00:28:54 +0100 | 
| commit | 0e9e0af9755232ef3ac4858379cc155444a9ba5c (patch) | |
| tree | 201d52efa7c5e584cf867da4f8c6f14aaf2e8f5f /docs | |
| parent | fc8c9baa399c33956133cdb6892fc7007430d299 (diff) | |
| download | angular.js-0e9e0af9755232ef3ac4858379cc155444a9ba5c.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')
| -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 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) { ... }, | 
