[Vuejs]-Vue Js Routing – Parent without path

0👍

You can create a new component that shows the Dashboard or Auth components conditionally, then set that as the component for the '/' path in the routes config.

Something like this:

<template>
  <auth v-if="isAuthenticating" />
  <dashboard v-else />
</template>

Leave a comment