Open binoculars opened 9 years ago
Is there a better or proper way than to set template.model = template.model to trigger the observer?
template.model = template.model
var template = document.querySelector('#mytemplate'); template.bindingDelegate = new PolymerExpressions(); template.model = {}; ['child1', 'child2'].map(function(child) { document.querySelector('core-ajax.' + child).addEventListener("core-response", function (e) { template.model[child] = e.detail.response; template.model = template.model; // workaround for now. } ); });
Is there a better or proper way than to set
template.model = template.model
to trigger the observer?Example