component / reactive

Tiny reactive template engine

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

parse root element

bodokaiser opened this issue · comments

I noticed that reactive can not bind to the data-* bindings of the root element:

var $a = document.createElement('a');

$a.dataset.href = 'username');

var model = { username: 'blabla' };

reactive($a, model);

// outputs ""
console.log($a.href);