[Vuejs]-How to fetch data from the DB using Vue axios in laravel?

0👍

Vue provides Computed Properties and Watchers for this tasks.

Then you can use the v-for operator in one div that will create all sub-divs with the values you get (all counts for you) and whenever it changes vue will change it for you.

For this knowledge now you can make a array with your values and loop them in your divs. Change, add, update or delete them via axios calls just changing the computed property or update watcher.

Leave a comment