Skip to content
Advertisement

How to display Data from PocketBase to VueJS 3

Good day! How do I display all data from PocketBase to VueJS 3

Still new to Vue, Idk why it displays only one data. Tried using v-for but it causes render errors.

Any solutions to this? Thank you.

JavaScript

Advertisement

Answer

With

JavaScript

you are overwriting post, so at the end you have one value. Try like:

JavaScript

and then use v-for to show all the posts

Advertisement