title: How to create anchor tags with Vue Router
body: <p>I am creating a small <a href="http://vuejs.org/" rel="noreferrer">Vue</a> webapp, I want to create an anchor tag in this.</p>
  
  <p>I have given an <code>id</code> to one of the <code>div</code> I wanted to have anchor tags like this:</p>
  
  <pre><code>&lt;div id="for-home"&gt;
     ....
  &lt;/div&gt;
  </code></pre>
  
  <p>And here is my router configuration: </p>
  
  <pre><code>export default new Router({
    abstract: true,
    mode: 'history',
    scrollBehavior: () =&gt; ({ y: 0 }),
    routes: [
      { path: '/', component: abcView}
    ]
  })
  </code></pre>
  
  <p>But with this anchor tags are sometimes working and sometimes not working, Have I missed something in this?</p>