UNPKG

@polight/lego

Version:

Tiny Web-Components lib for future-proof HTML mentors

9 lines (6 loc) 219 B
--- title: Condition :if weight: 2 --- `:if` directive allows to conditionally display a tag and its descendants. Example: `<p :if="state.count < 5">Less than 5</p>` will be displayed if the condition is met.