docs(guide/directive): make directive controller minification-safe

It is best to emphasize that the "controller" property needs to be min safe

Closes #3125
This commit is contained in:
Andrew O'Brien 2013-07-03 11:51:56 -04:00 committed by Pete Bacon Darwin
parent fc8c9baa39
commit 0e9e0af975

View file

@ -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) { ... },