jeudi 5 mars 2020

Vue-JS Displaying other data than the v-model in an input

Here's part of my code:

data() {
    return {
        dossier: [{
               caisse: '', // I change this value with v-model
               nom_caisse: 'exempleName' // I want to display this dynamic value in the input
        }],
    }
}

<input v-model="d.caisse"/>

I just put in the essential information. I didn't put the for. I'm going to go through my "dossier" array and interact on "caisse". It works but I would like to display another field in the input of the "nom_caisse" table. Do you know how to display another value than the v-model?




Aucun commentaire:

Enregistrer un commentaire