addBindings
Add a set of view binding callbacks.
stache.addBindings(bindings)
Register a set of view bindings.
const bindings = new Map();
bindings.add(/foo/, function(el, attrData) {
...
});
stache.addBindings(bindings);
This will loop over the set of bindings and register them all with can-view-callbacks.
Parameters
- bindings
{Map|Object}
:A key/value pair where the keys are strings or regular expressions and the values are callback functions.