npm i simple2waybinding
import simple2WayBind from 'simple2waybinding'
Global for all element var simple2WayBindInstance = simple2WayBind();
wrapper for specific element var simple2WayBindInstance = simple2WayBind({rootElementId: 'rootId'});
Example:
simple2WayBindInstance.setData('textIp','newValue');
-> it will reflect both sdb-bind
, sdb-bind-text
see demo on github
Navigate to github and download -> navigate to demo and run live server and also refer implementation