Q:

I need help for my navbar with VueJS

I'm doing a project with vueJS with a login page. The probleme is that i don't know if it's possible to show the navbar on all my pages except my login page (www.mysite.com/) ?
Thank you and have a nice day,
Alec.

A:

you can use $route.name :
<nav v-if="$route.name != 'login'"> </nav>

'login' : change it with the name of your login page.
here an example : https://github.com/vuejs/vue-router/issues/254

