1👍
✅
It is being treated as a string, and then is iterating over the characters of the string. You have to use bind for it to execute it as Javascript, and your Javascript syntax is incorrect.
v-bind:items="['1GB']"
v-bind:items="['1GB','2GB','3GB']"
2👍
try :items="['1GB']"
instead
Explanation:
Your property is interpreted as a string, and not an array
Use :
or v-bind:
to use an array (or anything that isn’t a static string) as a property
👤kess
Source:stackexchange.com