Skip to content

Latest commit

 

History

History
28 lines (19 loc) · 498 Bytes

README.md

File metadata and controls

28 lines (19 loc) · 498 Bytes

Two Way

The simplest javascript two-way binding with 36 lines.

preview

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 ?
  })