Skip to content

conditional component on route #76

@aliuygur

Description

@aliuygur

how can i set route component conditional. such as when the isLoggedIn data true the "/" route wil be dashboard.

module.exports = function (router) {
  router.map({
    '/': {
      // if isLogged in is true require "dashboard" componen else load home
      component: require('./components/home.vue')
    }})
  })

how can i do it ?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions