Skip to content

Latest commit

 

History

History
10 lines (7 loc) · 387 Bytes

File metadata and controls

10 lines (7 loc) · 387 Bytes

One Way Databinding in JS using Proxy

without any frontend framework

How to use?

  • Simply create an object instance using dataBinding function and pass your initial data to it.
  • Make any element in your HTML template as data-bind-key_you_want_to_bind

How it works?

It uses Javascript Proxy API to capture the set event on object.