mardi 9 octobre 2018

binding multiple properties to a textfield label in Vuetify

I want to bind a string containing multiple values to a textfield in vuetify. I wrote the following code but it gives me the properties as string.

<div v-if="textField">
      <v-text-field
      :value="'Our client, , is  years old.'"
      outline
      readonly
      >
</v-text-field>
</div>

The output is:

Our client, , is  years old.

Eventhough I want to get this.name and this.age values that are John and 32 something like this:

Our client, John, is 32 years old.

What's the best way to do it?




Aucun commentaire:

Enregistrer un commentaire