0
我一直都在他们的github上,他们的网站,以及其他网站。重新描绘模板标签中达特
最接近的答案,我可以看到完全内PolymerJs,这是另一个堆栈溢出线程有关。
var template = document.querySelector('template'); // Use specific selector here
template.iterator_.updateIteratedValue(); // Force Polymer to refresh template
但是当我抬头看TemplateElement类,我没有看到任何形式的重绘方法,或signuatures这在我跳了出来。
理想我有这样的事情:
<template is="dom-repeat" items="{{days}}">
<div>{{item.name}}</div?
</template>
,但是当我改变days
,也许加入一个新元素,或从中删除,它不重新呈现模板。我在做什么很简单:
List newArray = [];
set("days", newArray);
或类似的东西:
set("days", days.map((Map m){ m['times'] = sampleTest.split(''); return m;}).toList());
我很难理解这个问题是关于什么的。什么是你在第一个代码块中查询的'template'标签,它是如何与''相关的? –
我是短代码。它将有一个id设置为something,在我的小标记示例中也有一个id。 – Fallenreaper