I am trying to get the value of a data item for use in the {{if}} tag, but cannot make it work. So the question is, how do we get this value? Here you can see the full code http://jsfiddle.net/epitka/BhYvh/
<script id="contentHeaderTemplate" type="text/x-jquery-tmpl"> {{if($data.Id===1)}} Create New Order{{else}}Edit Order {{/if}} <br /> </script>
source share