[英]Polymer 0.9 compute in repeat template
I'm trying to use a compute in a template repeat block. 我正在尝试在模板重复块中使用计算。 Although the compute works out of the template it doesn't work in it.
尽管计算无法在模板中运行,但无法在模板中运行。 Is there a way for a compute to work in the template repeat?
有没有办法让计算在模板重复中工作?
Not Working 无法运作
<template>
<ul>
<template is="dom-repeat" items="{{menuPages}}">
<li class="c-text">
<div>{{computeTest(testParam)}}</div>
<span>{{item.title}}</span>
</li>
</template>
</ul>
</template>
Working 工作中
<template>
<div>{{computeTest(testParam)}}</div>
<ul>
<template is="dom-repeat" items="{{menuPages}}">
<li class="c-text">
<span>{{item.title}}</span>
</li>
</template>
</ul>
</template>
Update to latest Polymer! 更新到最新的聚合物! It worked for me...
它对我有用...
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.