UNPKG

@danielkalen/simplybind

Version:

Magically simple, framework-less one-way/two-way data binding for frontend/backend in ~5kb.

13 lines (12 loc) 328 B
<template> <form> <h4>Products</h4> <label repeat.for="product of products"> <input type="radio" name="group1" model.bind="product.id" checked.bind="selectedProductId"> ${product.id} - ${product.name} </label> <br /> Selected product ID: ${selectedProductId} </form> </template>