@danielkalen/simplybind
Version:
Magically simple, framework-less one-way/two-way data binding for frontend/backend in ~5kb.
13 lines (11 loc) • 337 B
HTML
<template>
<form>
<h4>Products</h4>
<label repeat.for="product of products">
<input type="radio" name="group2"
model.bind="product" checked.bind="selectedProduct">
${product.id} - ${product.name}
</label>
Selected product: ${selectedProduct.id} - ${selectedProduct.name}
</form>
</template>