The if binding doesn’t seem to be working for me. Here is my template:
<div>
<span data-bind="text: name"></span>
<div data-bind="if: false ">+<span data-bind="text: priceFormatted"></span></div>
</div>
The if: false is there as a smoketest, because no matter what I put there, the span always shows up. What am I doing wrong?
It breaks using v1.1.2, but works just fine in v2.0. See this jsfiddle. Maybe you need to use the later version of Knockout.JS?