PSA: MDV master branch change: HTMLTemplateElement.bindTree() is now template.model

49 views
Skip to first unread message

Rafael Weinstein

unread,
Apr 18, 2013, 5:08:33 PM4/18/13
to toolkitchen
I've updated the main README.md, but

HTMLTemplateElement.bindTree() is no longer public API. The correct
way to provide data to a template is something like:

document.querySelector('myTemplate').model = { myData: 'foo' };

Note that because bindTree is in use by custom elements, it is now
available as "private" API at

HTMLTemplateElement.bindAllMustachesFrom_(node, model);

R
Reply all
Reply to author
Forward
0 new messages