I am trying to follow documentation:
But for some reason my template is not working as expected, as soon as I put <template v-if="variable">
vue fails to render anything.
<script type="text/x-template" id="dashboard-inititial-message">
<template v-if="okBoom">
<h1>Title</h1>
<p>Paragraph 1</p>
<p>Paragraph 2</p>
</template>
<div v-if="ok">
<h1>Title</h1>
<p>Paragraph 1</p>
<p>Paragraph 2</p>
</div>
<div v-else>
<p>ELSE</p>
</div>
</script>
Any advice?
Snippets that demonstrate problem: