framework7

Open full view…

how do to dyanamically fetch data from database when the tab is shown ?

mathansivavel
Tue, 19 Sep 2017 07:33:52 GMT

I use ajax get method to fetch data from database. I have three tabs in a single page. I need to display the user list from database in a tab dyanamically . can anyone help me .

neekfenwick
Thu, 21 Sep 2017 04:54:47 GMT

I haven't done this myself yet, but I read https://vuejsdevelopers.com/2017/08/28/vue-js-ajax-recipes/ and part 3 seems relevant to you. If your Vuex store does the ajax and stores the results in one of its data components, then a list in your component using v-for can automatically regenerate itself. Have you used v-for in this way before? It's quite magical when you get it right for the first time :)