ng-multi-transclude
ng-multi-transclude copied to clipboard
ng-multi-transclude-controller on another custom directive
Hi, Let's say that my directive uses another element directive as its root element. For example:
<my-directive ng-multi-transclude-controller>
<div>
Some content with multi-transclusion...
</div>
</my-directive>
It seem that when trying to do so, multi-transclusion won't work. In order to make it work, I must add a wrapper div, and move the 'ng-multi-transclude-controller' to it:
<div ng-multi-transclude-controller>
<my-directive>
<div>
Some content with multi-transclusion...
</div>
</my-directive>
</div>
Is this scenario supposed to be supported? I think it is useful. I would prefer to use as few wrappers as possible - for various reasons (for example - to avoid having to set certain CSS properties twice - such as the height property, in case I want 'my-directive' to have 100% height).
Thanks!