SkillAgentSearch skills...

TwoWayBinding

javascript the simplest two-way binding

Install / Use

/learn @xingoxu/TwoWayBinding
About this skill

Quality Score

0/100

Supported Platforms

Universal

README

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

Related Skills

View on GitHub
GitHub Stars15
CategoryDevelopment
Updated4y ago
Forks1

Languages

JavaScript

Security Score

75/100

Audited on Aug 19, 2021

No findings