UNPKG

@danielkalen/simplybind

Version:

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

10 lines (7 loc) 202 B
import {bindable} from '../../src/decorators'; export class SimpleElement { @bindable foo = 'foo'; @bindable bar = 'bar'; fooChanged(newValue, oldValue){ } barChanged(newValue, oldValue){ } }