title: v-else-if not working in vuejs : Failed to resolve directive: else-if
body: <p>I am using "if" and "else-if" but is giving me compilation error. </p>
  
  <blockquote>
    <p>[Vue warn]: Failed to resolve directive: else-if</p>
  </blockquote>
  
  <p>this is my code </p>
  
  <p><div class="snippet" data-lang="js" data-hide="false" data-console="true" data-babel="false">
  <div class="snippet-code">
  <pre class="snippet-code-js lang-js prettyprint-override"><code>var app = new Vue({
    el:"#app",
    data:{
        lab_status : 2
    }
  });</code></pre>
  <pre class="snippet-code-html lang-html prettyprint-override"><code>&lt;script src="https://ajax.googleapis.com/ajax/libs/jquery/2.1.1/jquery.min.js"&gt;&lt;/script&gt;
  &lt;script src="https://cdnjs.cloudflare.com/ajax/libs/vue/1.0.28/vue.js"&gt;&lt;/script&gt;
  &lt;div id="app"&gt;
    &lt;span v-if="lab_status==0"&gt;Inactive&lt;/span&gt;
    &lt;span v-else-if="lab_status==1"&gt;Active&lt;/span&gt;
    &lt;span v-else&gt;Expired&lt;/span&gt;
  &lt;/div&gt;</code></pre>
  </div>
  </div>
  </p>
  
  <p>Please help me to resove this.</p>