Donate. I desperately need donations to survive due to my health

Get paid by answering surveys Click here

Click here to donate

Remote/Work from Home jobs

Vue component html

Prompt please, at compilation there is an error:

Component template should contain exactly one root element. If you are using v-if on multiple elements, use v-else-if to chain them instead.

The error occurs in the 17th line in jsfiddle that i provide in below.

<div class="ui_tabs" {{ sort === 'hot' ? 'Hot' : 'New' }}>

Here is a jsfiddle: Jsfiddle

Where is the problem here? Thanks in advance.

Comments