I'm trying to use templates without using the template
tag as this one is not supported in any version of IE.
Instead of this:
<template id="component-input-slider">
<span data-bind="text: display"></span>
</template>
I'm trying to use:
<div class="hidden" id="component-input-slider">
<span data-bind="text: display"></span>
</div>
And in the 2nd case I'm getting the error: display is not defined
.
What's the best solution for this?
I tried adding data-bind: if: $data
in the template wrapper and it seems to work on the reproduction, but not in my real app.