[Vuejs]-Implement loader with a timeout in Javascript

1👍

If you search how to print a message after 10 seconds, there is this code:

function stateChange(newState) {
  setTimeout('', 10000); //10sec * 1000

  if(newState == -1) {
    alert('NO DATA');
  }
}

Leave a comment