title: How to get a specific route data by route name in VueJs?
body: <p>In VueJs i can always access the current route data. but what if i want to access a different route's data by its name ?
  suppose i have routes defined,</p>
  
  <pre><code>[
      {
          name: "dashboard",
          path: "/",
          component: Dashboard,
          meta: {
              title: "Dashboard",
          }
      },
      {
          name: "login",
          path: "/login",
          component: Login,
          meta: {
              title: "Login",
          }
      }
  ]
  </code></pre>
  
  <p>now suppose i am in dashboard route. i can access its data by <code>this.$route</code> but what if i want to access the meta data of route named as login ?
  is there any function which will return me the object of route named <code>login</code> ?</p>