Conditional rendering
The <cond>
renders its content when a condition is true.
html
<cond if="item.isActive">
<div>Item is active</div>
</cond>
Attributes | Use |
---|---|
if="…" | Render the content only if some variable holds the value true . |