title: How to delay @keyup handler in Vue.js
body: <p>my view:</p>
  
  <pre><code>ns-input#filterName(type="text", v-model="filterName", @keyup="searchTimeOut()")
  </code></pre>
  
  <p>in my vue code:</p>
  
  <pre><code>getUsers() {
     .
     .
     .
     API.users.index(params).then(blabla);
     .
     .
     .
  },
  
  searchTimeOut() {
    let timeout = null;
    clearTimeout(timeout);
    // Make a new timeout set to go off in 800ms
    timeout = setTimeout(() =&gt; {
      this.getUsers();
      console.log("hi")
    }, 800);
  },
  </code></pre>
  
  <p>I want call <code>getUsers()</code> only once after i stop typing and 800 ms. Right now, i'm calling <code>getUsers()</code> every time i write a letter.</p>