title: Access route params within route/ subRoutes object in Vuejs
body: <p>Can anybody tell me if there is a way to access the route params directly inside the route objects?, I need to require different components based on the route object.</p>
  
  <pre><code>router.map({
    '/dashboard/*': {
      component: Home
    },
    '/dashboard/:module': {
      component: Module,
      subRoutes: {
        '/': {
          component: require('./components/'+this.$route.params.module+'.vue')
        },
        '/:tab': {
          component: require('./components/'+this.$route.params.tab+'.vue')
        }
      }
    }
  });
  </code></pre>