Can <ng-content> be used in the following way?
Defining:
<th>title</th>
<ng-content select="[stuff]"></ng-content>
Using:
<div stuff>
<th>category</th>
</div>
The HTML that gets generated doesn't include the <div stuff>:
<th>title</th>
<th>category</th>
This can be achieved using ng-container
Replacing the <div stuff> with <ng-container stuff> should work
Example https://stackblitz.com/edit/angular-hhimgu
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With