Skip to content

xingoxu/twoWayBinding

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

10 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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

About

javascript the simplest two-way binding

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published