Auto refresh vue js API call

PHOTO EMBED

Sat Jul 04 2020 15:06:33 GMT+0000 (Coordinated Universal Time)

Saved by @ayazahmadtarar #javascript

axios.get('api/mesas/ListarTodos').then(function(response){
    //console.log(response);
    me.mesas=response.data;
    me.loading=false;
}).catch(function(error){
    console.log(error);
}).finally(function(){
    setTimeout(/*call listen in a function*/, 30 * 1000);
});
content_copyCOPY

https://stackoverflow.com/questions/56605866/call-method-every-so-often-vue-js