This repository was archived by the owner on Apr 12, 2024. It is now read-only.
File tree 1 file changed +4
-1
lines changed
1 file changed +4
-1
lines changed Original file line number Diff line number Diff line change 399
399
* * `controller` - the directive's required controller instance(s) - Instances are shared
400
400
* among all directives, which allows the directives to use the controllers as a communication
401
401
* channel. The exact value depends on the directive's `require` property:
402
+ * * no controller(s) required: the directive's own controller, or `undefined` if it doesn't have one
402
403
* * `string`: the controller instance
403
404
* * `array`: array of controller instances
404
- * * no controller(s) required: `undefined`
405
405
*
406
406
* If a required controller cannot be found, and it is optional, the instance is `null`,
407
407
* otherwise the {@link error:$compile:ctreq Missing Required Controller} error is thrown.
408
408
*
409
+ * Note that you can also require the directive's own controller - it will be made available like
410
+ * like any other controller.
411
+ *
409
412
* * `transcludeFn` - A transclude linking function pre-bound to the correct transclusion scope.
410
413
* This is the same as the `$transclude`
411
414
* parameter of directive controllers, see there for details.
You can’t perform that action at this time.
0 commit comments