domy-bind
Two-way data binding. For use with Browserify.
Part of the Domy module collection.
Install
npm install domy-bind --save
Usage
var bind = ; var html = '<div>' ' <h2>{{title}}</h2>' ' <p>{{description}}</p>' '</div>'; var data = title: 'Title' description: 'Description'; var element = ; documentbody; datatitle = "New Title"; // Html/DOM will update when this is changed
Run Tests
Requires Phantomjs is installed
npm install
npm test