Skip to content
This repository was archived by the owner on Apr 12, 2024. It is now read-only.

Commit 36447cb

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 #3125
1 parent 3b2c6f0 commit 36447cb

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
@@ -244,7 +244,8 @@ Here's an example directive declared with a Directive Definition Object:
244244
transclude: false,
245245
restrict: 'A',
246246
scope: false,
247-
controller: function($scope, $element, $attrs, $transclude, otherInjectables) { ... },
247+
controller: ["$scope", "$element", "$attrs", "$transclude", "otherInjectables",
248+
function($scope, $element, $attrs, $transclude, otherInjectables) { ... }],
248249
compile: function compile(tElement, tAttrs, transclude) {
249250
return {
250251
pre: function preLink(scope, iElement, iAttrs, controller) { ... },

0 commit comments

Comments
 (0)