fullPath

route.fullPath // '/users/:userId'
The full path of the route, including parent parts:

let {$router} = mockRouter([
  {
    path : '/users',
    children : [
      {
        path : ':userId',
        children : [
          path : 'edit'
        ]
      }
    ]
  }
]);
let route = $router.routes[0].children[0].children[0];
route.path // 'edit'
route.fullPath // '/users/:userId/edit'

results matching ""

    No results matching ""