Reputation: 121
I am trying to concatenate two string values into a element, with no success thus far. This works fine:
<v-toolbar-title
class="hidden-sm-and-down font-weight-light"
v-text="$route.name"
/>
But I need to concatenate the following to $route.name somehow:
' (' + {{sitename}} + ')'
so that the value of local variable sitename follows the route name.
Is this possible to do in the v-text directive, or do I have to jump through hoops to assemble the string elsewhere?
Upvotes: 0
Views: 1035