M
M
Matvey Uvarov2018-11-09 17:57:28
Vue.js
Matvey Uvarov, 2018-11-09 17:57:28

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

1 answer(s)
V
Vasily Varyukhin, 2018-11-09
@zoddak

computed or I didn't understand the question.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question