[Vuejs]-Defining props of a single page Vue component using v-for

0👍

Try it.

<div v-for="item in items">
   <custom_form_item :item="item" :key="item.id"></custom_form_item>
</div>

0👍

Fixed! Solution: self.items = result.data.data (the result was passed as an JSON object {data: …} by rails, which was result.data.data.

Leave a comment