mirror of
https://github.com/Hopiu/angular.js.git
synced 2026-03-16 23:30:23 +00:00
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:
parent
fc8c9baa39
commit
0e9e0af975
1 changed files with 2 additions and 1 deletions
|
|
@ -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) { ... },
|
||||
|
|
|
|||
Loading…
Reference in a new issue