1.0.2 • Published 7 years ago

two-way-binding v1.0.2

Weekly downloads
3
License
MIT
Repository
github
Last release
7 years ago

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

7 years ago

1.0.1

7 years ago

1.0.0

7 years ago