Is there a way to concatenate strings with variables in a condition, without the use of inner tags such as span or other which could have v-if.
In the following example:
data() {
return {
useSnippet: true,
name: 'John',
lastName: 'Doe'
}
}
The markup should display the data as follow:
<div>
bunch of text
{{useSnippet ? 'Hello {{name}}, your last name is {{lastName}}'}}
bunch of text
</div>
This is of course returning an error.
The desired outcome would be:
bunch of textHello John, your last name is Doebunch of text