Can you review this code snippet below? It's embedded directly in an html page, no isolated components here. This code is designed for a Vue.js application.
<div v-for="(screw, index) in form.screws " class="screw-module">
<input type="radio" name="screws[index][prop1]" v-model="screws[index].prop1" id="prop1" value="prop1">
<input type="radio" name="screws[index][prop2]" v-model="screws[index].prop2" id="prop2" value="prop2">
<input type="radio" name="screws[index][prop3]" v-model="screws[index].prop3" id="prop2" value="prop3">
</div>
Please pay attention to name="screws[index][thread]"
. What I require as the final rendered HTML name attribute, should be:
// iteration 1
name="screws[0][prop1]"
name="screws[0][prop2]"
// iteration 2
name="screws[1][prop1]"
name="screws[1][prop2]"
And so forth... Can you provide the correct syntax for this scenario?