two-way-binding
v1.0.2
Published
javascript the simplest two-way binding
Downloads
8
Readme
Two Way
The simplest javascript two-way binding with 36 lines.
Live demo & playground at here
Getting Started
twoWay(object,input);
//access object.value will be input.value ( input.checked for checkbox )
If I want to have a notice when the value updated ?
twoWay(object,input)
.onUpdated(val=>{
//do what you like
})
.onUpdated(val=>{
//pretty cool. isn't it ?
})