ajouter boutons pour chaque réponse

front
Gwenael PLANCHON 1 year ago
parent eab10e8359
commit a7a6a640b6

@ -38,6 +38,11 @@ export default {
}
)
},
repondre(reponse){
console.log(reponse)
this.question=`Réponse "${reponse}" envoyée`
this.reponses=[]
},
//simuler l'api
async DEBUG_obtenirQuestionNormale(){
return JSON.parse(`
@ -66,5 +71,6 @@ export default {
<template>
<p>debug : code partie {{ codePartie }}</p>
<p>{{ question }}</p>
<button v-for="reponse in reponses" @click="repondre(reponse)">{{ reponse }}</button>
<p>{{ Date.now() }}</p>
</template>
Loading…
Cancel
Save