Conditional rendering
The <cond>
tag is used for conditional rendering.
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 . |