One way to solve the problem is to define a JS function called iff and then use that in your expression:
<td>{{iff(j.invoiced, "●" ,"○")}}</td>
Here is how I defined the iff function:
<script>
Polymer({
is: "job-audit",
properties: {
jobs: {
type: Array,
notify: true
}
},
iff(test,t,f){
return test?t:f;
}
});
</script>
与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…