MattB
1 month ago
176
1
Vue

Conditional routing in VueJs

Posted 1 month ago by MattB

Is it possible to have 1 routing file in Vue which handles conditional routing as per the below pseudocode?

if ( loggedInUser == userTypeA) {
	All routing Logic for userTypeA goes here
} else if ( loggedInUser == userTypeB) {
	All routing Logic for userTypeB goes here
}

Please sign in or create an account to participate in this conversation.