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); });