Answer the question
In order to leave comments, you need to log in
How to implement the forwarding of the value of the language template in the arrow function of the js code?
Can you tell me how to implement value forwarding?
export default {
data: () => ({
.
.
.
items: [
{
// нужно заменить на эту конструкцию title: $t("message.extracts")
// но она сцука не работает)
title: 'бла-бла'
}
],
.
.
.
}),
}
<template>
<v-app>
.
.
<template v-for="(item, index) in items">
.
.
<v-list-tile-content>
<v-list-tile-title>
{{ item.title }} <!-- тут выводим значение -->
</v-list-tile-title>
</v-list-tile-content>
.
.
</template>
.
.
</v-app>
</template>
Answer the question
In order to leave comments, you need to log in
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question