title: vue.js get route name in App.vue
body: <p>I used vue-cli with webpack to build up the vue project.
  Then I installed vue-meta-info to set up the seo.</p>
  
  <p>I want to set up the Page title with the templates and the route name. 
  However , I cannot get the variable in router.</p>
  
  <p><strong>rotuer/index.js</strong></p>
  
  <pre><code>import Vue from 'vue';
  import Router from 'vue-router';
  import HelloWorld from '@/components/HelloWorld';
  
  Vue.use(Router);
  
  export default new Router({
        mode: 'history',
        routes: [
      {
        path: '/',
        name: 'HelloWorld',
        component: HelloWorld,
      },
    ],
  });
  </code></pre>
  
  <p>App.vue</p>
  
  <pre><code>&lt;template&gt;
    &lt;div id="app"&gt;
      &lt;router-view/&gt;
    &lt;/div&gt;
  &lt;/template&gt;
  
  &lt;script&gt;
  export default {
   name: 'App',
   metaInfo: {
      title: "My Website - "+ route.name,
  },
  };
  
  &lt;/script&gt;
  </code></pre>