I have a list:
myList = [1, 2, 3, 4, 5, 6, 7, 8, 9]
I'd like to generate buttons using this list where the label corresponds to the number:
<q-btn v-for="number in myList" v-bind:key="number" color="primary" label="******" />
The goal is to assign each number as the button's label. This means I should end up with 9 buttons labeled from 1 to 9:
<q-btn color="primary" label="1" />
<q-btn color="primary" label="2" />
<q-btn color="primary" label="3" />
<q-btn color="primary" label="4" />
<q-btn color="primary" label="5" />
<q-btn color="primary" label="6" />
<q-btn color="primary" label="7" />
<q-btn color="primary" label="8" />
<q-btn color="primary" label="9" />
I'm new to this so any help would be appreciated. Thank you in advance!