S
S
Spoon in the brain2019-11-09 18:22:04
Vue.js
Spoon in the brain, 2019-11-09 18:22:04

How to hide an element on a specific route?

I want to hide an element on a specific route, let's say /signup .
How to do it in Vue.js framework ?

Answer the question

In order to leave comments, you need to log in

1 answer(s)
0
0xD34F, 2019-11-09
@vessels

<div v-if="$route.name !== 'signup'">hello, world!!</div>

or
<div v-if="$route.path !== '/signup'">hello, world!!</div>

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question