question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

navbar links in nuxt

See original GitHub issue

I’m using bootstrap-vue in my nuxt project. I have created some navbar with some links of my pages.

`<b-navbar toggleable="md">

	<b-navbar-toggle target="nav_collapse" class="ml-auto"/>
	
	<b-collapse id="nav_collapse" is-nav>
		<b-navbar-nav class="mx-auto">
			<b-nav-item class="mx-auto" to="/">home</b-nav-item>
			<b-nav-item class="mx-auto" to="/booking">Booking</b-nav-item>
			<b-nav-item class="mx-auto" to="/gallery">Gallery</b-nav-item>
			<b-nav-item class="mx-auto" to="/faq">FAQ</b-nav-item>
			<b-nav-item class="mx-auto" to="/contact">Contact</b-nav-item>		
		</b-navbar-nav>
	</b-collapse>
</b-navbar>`

I think there is a problem when using links who goes to=“/” they are always selected. You can see a picture on the fallowing link http://prntscr.com/jj2zlz

Issue Analytics

  • State:closed
  • Created 5 years ago
  • Comments:5 (3 by maintainers)

github_iconTop GitHub Comments

1reaction
tmorehousecommented, Nov 20, 2018

Router props are applied directly to <b-bropdown-item :to="href" active-class="foo" exact>, just like the to prop.

1reaction
emanuelmutschlechnercommented, May 17, 2018

Take a look at the router docs. Prop exact is what you want: https://router.vuejs.org/en/api/router-link.html

Read more comments on GitHub >

github_iconTop Results From Across the Web

Adding a Navbar to Nuxt Apps - A Vue.js Lesson From our ...
Adding a Navbar to Nuxt Apps. In this lesson, we're exploring where to put your navbar and other parts of your application that...
Read more >
Navbars, footers, and menus with Nuxt - Prismic
Learn how to create menus in Nuxt. ... In the Group field, we added a Link field and a Rich Text field; this...
Read more >
Navigation drawer tutorial with Nuxt | Codementor
Simple responsive navigation drawer built with Nuxt.js.
Read more >
Built-in Components - Nuxt
The linkActiveClass works the same as the vue-router class for active links. If we want to show which links are active all you...
Read more >
navbar active tab using using nuxt/vue - Stack Overflow
Instead of using <a> tags, use <nuxt-link> . Then, in your css, style the .nuxt-link-exact-active class— for example:
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found