mirror of
https://github.com/Hopiu/angular.js.git
synced 2026-03-17 07:40:22 +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
3b2c6f09cb
commit
36447cb2b5
1 changed files with 2 additions and 1 deletions
|
|
@ -244,7 +244,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