Simple Zero dependency 2way databinding library
npm install twowaytwoway is a very lightweight zerodependency two way databinding library. Specially designed for people wo don't want to have a framework like react, vue or angular.twoway to your website you simply include the library via CDNhttps://cdn.jsdelivr.net/npm/twoway
and when the page is ready run
let store = twoway("#app", {
number: null,
color: null,
size: null,
name: "Fabs",
}
);
Install it via NPM
npm i twoway --save
and include and initialize it in you main file
const twoway = require('twoway');
let store = twoway("#app", {
number: null,
color: null,
size: null,
name: "Fabs",
}
);
TwoWay object. The constructor required a root let store = twoway("#app", {
name: "Fabs",
})
store.name = 'Foo'; and the DOM updates automatically let store = twoway("#app", {
name: "Fabs",
})
store.name = "Foo Bar";