Suppose I want to transclude such a markup into ng-content:
<div aaa>
AAA
</div>
<div aaa bbb>
BBB
</div>
For this I can use selectors (which look like regular CSS ones):
<ng-content select="div[aaa]"></ng-content>
----- some other content here -----
<ng-content select="div[aaa][bbb]"></ng-content>
But what if I have this content (I can't get rid of 'section' tag):
<section>
<div aaa>
AAA
</div>
<div aaa bbb>
BBB
</div>
</section>
What selectors can I use to get the same result? This doesn't work for me:
<ng-content select="section div[aaa]"></ng-content>
----- some other content here -----
<ng-content select="section div[aaa][bbb]"></ng-content>
Neither this:
<ng-content select="section>div[aaa]"></ng-content>
----- some other content here -----
<ng-content select="section>div[aaa][bbb]"></ng-content>
Is there any workaround for this? Why the selector doesn't work as CSS one? Is this by design? I can't find the reason on docs...
Will it help if 'section' tag is replaced with 'ng-template' or 'ng-container'?