@danielkalen/simplybind
Version:
Magically simple, framework-less one-way/two-way data binding for frontend/backend in ~5kb.
23 lines (21 loc) • 506 B
HTML
<template>
<form>
<h4>Do you like cake?</h4>
<label>
<input type="radio" name="group3"
model.bind="null" checked.bind="likesCake">
Don't Know
</label>
<label>
<input type="radio" name="group3"
model.bind="true" checked.bind="likesCake">
Yes
</label>
<label>
<input type="radio" name="group3"
model.bind="false" checked.bind="likesCake">
No
</label>
likesCake = ${likesCake}
</form>
</template>