Can anyone explain why this is happening? New to Vue, and don't understand what's wrong?
This works:
<template>
<div>
...
<div v-else>
{{ remaining.hours > 0 ? (remaining.hours < 10 ? '0' : '') + remaining.hours + ':' : '' }}
However when I try to add a span, I get the 'unclosed string literal' error:
<template>
<div>
...
<div v-else>
{{ remaining.hours > 0 ? (remaining.hours < 10 ? '0' : '') + remaining.hours + '<span class="colon">:</span>' : '' }}
{{ remaining.hours > 0 ? (remaining.hours < 10 ? '0' : '') + remaining.hours + `<span class="colon">:</span>` : '' }}or use escape before double quote{{ remaining.hours > 0 ? (remaining.hours < 10 ? '0' : '') + remaining.hours + '<span class=\"colon\">:</span>' : '' }}