Hi,
I'm on an ongoing project with Dukescript and I would like to evaluate a condition in data-bind :
simple evaluating:
<span data-bind="text: '19' > 18 ? 'Yes' : 'No'"></span>
Result: Yes
Evaluating:
<span data-bind="text: lebensdauer > 10 ? 'Yes' : 'No'"></span>
with eg. lebensdauer = { 10, 12, 12 } and iterate over that, I got: Yes, Yes, Yes
The acutal $data object in the iteration is:
...,"lebensdauer": 10,...
...,"lebensdauer": 12,...
...,"lebensdauer": 12,...
In this case, I have test more condition expressions like
data-bind="enable:lebensdauer>10,click:submitIt"
and more... it doesn't work ... it's stupid. Have anyone same issues or a solution?
Thanks in advanced
Andreas.