Skip to content
This repository was archived by the owner on Apr 12, 2024. It is now read-only.

Commit ca41996

Browse files
committed
docs($compile): correct transcludeControllers definition
Closes #13793
1 parent 9a60408 commit ca41996

File tree

1 file changed

+9
-2
lines changed

1 file changed

+9
-2
lines changed

src/ng/compile.js

+9-2
Original file line numberDiff line numberDiff line change
@@ -708,8 +708,15 @@
708708
* directives; if given, it will be passed through to the link functions of
709709
* directives found in `element` during compilation.
710710
* * `transcludeControllers` - an object hash with keys that map controller names
711-
* to controller instances; if given, it will make the controllers
712-
* available to directives.
711+
* to a hash with the key `instance`, which maps to the controller instance;
712+
* if given, it will make the controllers available to directives on the compileNode:
713+
* ```
714+
* {
715+
* parent: {
716+
* instance: parentControllerInstance
717+
* }
718+
* }
719+
* ```
713720
* * `futureParentElement` - defines the parent to which the `cloneAttachFn` will add
714721
* the cloned elements; only needed for transcludes that are allowed to contain non html
715722
* elements (e.g. SVG elements). See also the directive.controller property.

0 commit comments

Comments
 (0)