Skip to content

Commit 0e9e0af

Browse files
AndrewOpetebacondarwin
authored andcommitted
docs(guide/directive): make directive controller minification-safe
It is best to emphasize that the "controller" property needs to be min safe Closes angular#3125
1 parent fc8c9ba commit 0e9e0af

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

docs/content/guide/directive.ngdoc

+2-1
Original file line numberDiff line numberDiff line change
@@ -269,7 +269,8 @@ Here's an example directive declared with a Directive Definition Object:
269269
transclude: false,
270270
restrict: 'A',
271271
scope: false,
272-
controller: function($scope, $element, $attrs, $transclude, otherInjectables) { ... },
272+
controller: ["$scope", "$element", "$attrs", "$transclude", "otherInjectables",
273+
function($scope, $element, $attrs, $transclude, otherInjectables) { ... }],
273274
compile: function compile(tElement, tAttrs, transclude) {
274275
return {
275276
pre: function preLink(scope, iElement, iAttrs, controller) { ... },

0 commit comments

Comments
 (0)