mirror of
https://github.com/Hopiu/angular.js.git
synced 2026-05-01 19:54:45 +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,
|
transclude: false,
|
||||||
restrict: 'A',
|
restrict: 'A',
|
||||||
scope: false,
|
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) {
|
compile: function compile(tElement, tAttrs, transclude) {
|
||||||
return {
|
return {
|
||||||
pre: function preLink(scope, iElement, iAttrs, controller) { ... },
|
pre: function preLink(scope, iElement, iAttrs, controller) { ... },
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue