[Vuejs]-Vue.js Composition API vs Options API – posts ref in a v-for loop

1👍

Your mistake is here

posts = response.data;

When you use ref you have to use it with value. Change your code to this:

posts.value = response.data;

It should be working fine. For more detail you should check here:

https://vuejs.org/api/reactivity-core.html#ref

👤omerS

Leave a comment