0 points

Auto refresh vue js API call


dashboard

Sat Jul 04 2020 15:06:33 GMT+0000 (UTC)

Posted 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_copy Copy

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