UNPKG

@danielkalen/simplybind

Version:

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

13 lines (11 loc) 374 B
<template> <form> <h4>Products</h4> <label><input type="checkbox" checked.bind="motherboard"> Motherboard</label> <label><input type="checkbox" checked.bind="cpu"> CPU</label> <label><input type="checkbox" checked.bind="memory"> Memory</label> motherboard = ${motherboard}<br/> cpu = ${cpu}<br/> memory = ${memory}<br/> </form> </template>