My goal is to create a form using data from a JSON object. The JSON data is stored in a settings[] object retrieved through an axios request:
[ {
"id" : 2,
"name" : "CAR_NETWORK",
"value" : 1.00
}, {
"id" : 3,
"name" : "SALES_FCT_SKU_MAX",
"value" : 1.00
}, {
"id" : 4,
"name" : "SALES_FCT_SKU_MIN",
"value" : 1.00
}, {
"id" : 5,
"name" : "NB_PCB",
"value" : 1.00
}, {
"id" : 6,
"name" : "DESCENTR_SC1_SC2",
"value" : 1.00
}, {
"id" : 7,
"name" : "DESCENTR_SC3_SC4",
"value" : 1.00
}, {
"id" : 8,
"name" : "DVS_CAR",
"value" : 1.00
}, {
"id" : 9,
"name" : "DVS_MAG",
"value" : 1.00
}, {
"id" : 10,
"name" : "VMCAR_PCB",
"value" : 1.00
}, {
"id" : 11,
"name" : "VMCAR_PAL",
"value" : 1.00
}, {
"id" : 1,
"name" : "COEFF_SEASON_MAX",
"value" : 1.00
} ]
I am looking to create a v-template with textfields structured like this :
<v-text-field v-model="value" label="name"></v-text-field>
Does anyone have any suggestions on how I can achieve this?
Thank you