Skip to content

Commit 75f43d0

Browse files
AndrewOctrahey
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 f9f7513 commit 75f43d0

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

docs/content/guide/directive.ngdoc

Lines changed: 2 additions & 1 deletion
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)