|
76 | 76 | * scope: false,
|
77 | 77 | * controller: function($scope, $element, $attrs, $transclude, otherInjectables) { ... },
|
78 | 78 | * controllerAs: 'stringIdentifier',
|
| 79 | + * bindToController: false, |
79 | 80 | * require: 'siblingDirectiveName', // or // ['^parentDirectiveName', '?optionalDirectiveName', '?^optionalParent'],
|
80 | 81 | * compile: function compile(tElement, tAttrs, transclude) {
|
81 | 82 | * return {
|
|
395 | 396 | * * `iAttrs` - instance attributes - Normalized list of attributes declared on this element shared
|
396 | 397 | * between all directive linking functions.
|
397 | 398 | *
|
398 |
| - * * `controller` - a controller instance - A controller instance if at least one directive on the |
399 |
| - * element defines a controller. The controller is shared among all the directives, which allows |
400 |
| - * the directives to use the controllers as a communication channel. |
| 399 | + * * `controller` - the directive's required controller instance(s) - Instances are shared |
| 400 | + * among all directives, which allows the directives to use the controllers as a communication |
| 401 | + * channel. The exact value depends on the directive's `require` property: |
| 402 | + * * `string`: the controller instance |
| 403 | + * * `array`: array of controller instances |
| 404 | + * * no controller(s) required: `undefined` |
| 405 | + * |
| 406 | + * If a required controller cannot be found, and it is optional, the instance is `null`, |
| 407 | + * otherwise the {@link error:$compile:ctreq Missing Required Controller} error is thrown. |
401 | 408 | *
|
402 | 409 | * * `transcludeFn` - A transclude linking function pre-bound to the correct transclusion scope.
|
403 | 410 | * This is the same as the `$transclude`
|
|
0 commit comments