Passing options to templates in knockout 1.3
问题 In knockoutjs 1.2.1 I could do: <div data-bind="template: {name: 'Bar', foreach: persons, templateOptions:{fooMode: true} }"/> <script id='Bar'> {{if $item.fooMode}} FOO! {{/if}} </script> Which I have tried to translate to knockout 1.3.0beta as <div data-bind="template: {name: 'Bar', foreach: persons, templateOptions:{fooMode: true} }"/> <script id='Bar'> <span data-bind="if: $item.fooMode">FOO!</span> </script> But the new native template engine doesn't respect templateOptions. Is there