This select will be populated normally:
<select ... [email protected] asp-items=Model.Products>
</select>
Sometimes I want to render it as empty; I tried:
<select ... @if (!Model.IsEmpty) { <text>[email protected] asp-items=Model.Products</text> }>
</select>
That doesn’t work.
I could repeat that markup in an if-else block, but hope there’s a cleaner way to optionally invoke those tag helpers?