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

Commit 1e6f854

Browse files
Izhakibtford
authored andcommitted
docs($compile): note template is ignored with element transclusion
1 parent 0e293d2 commit 1e6f854

File tree

1 file changed

+7
-2
lines changed

1 file changed

+7
-2
lines changed

src/ng/compile.js

+7-2
Original file line numberDiff line numberDiff line change
@@ -255,8 +255,13 @@
255255
* scope. This makes it possible for the widget to have private state, and the transclusion to
256256
* be bound to the parent (pre-`isolate`) scope.
257257
*
258-
* * `true` - transclude the content of the directive.
259-
* * `'element'` - transclude the whole element including any directives defined at lower priority.
258+
* There are two kinds of transclusion depending upon whether you want to transclude just the contents of the
259+
* directive's element or the entire element:
260+
*
261+
* * `true` - transclude the content (i.e. the child nodes) of the directive's element.
262+
* * `'element'` - transclude the whole of the directive's element including any directives on this
263+
* element that defined at a lower priority than this directive. When used, the `template`
264+
* property is ignored.
260265
*
261266
* <div class="alert alert-warning">
262267
* **Note:** When testing an element transclude directive you must not place the directive at the root of the

0 commit comments

Comments
 (0)