Skip to content

Commit 3fb809e

Browse files
committed
docs($compile): correct transcludeControllers definition
Closes angular#13793
1 parent 52ea411 commit 3fb809e

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
@@ -731,8 +731,15 @@
731731
* directives; if given, it will be passed through to the link functions of
732732
* directives found in `element` during compilation.
733733
* * `transcludeControllers` - an object hash with keys that map controller names
734-
* to controller instances; if given, it will make the controllers
735-
* available to directives.
734+
* to a hash with the key `instance`, which maps to the controller instance;
735+
* if given, it will make the controllers available to directives on the compileNode:
736+
* ```
737+
* {
738+
* parent: {
739+
* instance: parentControllerInstance
740+
* }
741+
* }
742+
* ```
736743
* * `futureParentElement` - defines the parent to which the `cloneAttachFn` will add
737744
* the cloned elements; only needed for transcludes that are allowed to contain non html
738745
* elements (e.g. SVG elements). See also the directive.controller property.

0 commit comments

Comments
 (0)