SHARE

Hey gang, in this Vue JS tutorial I’ll show you how we can use Router Links to link to different views/components within our application. Router links are better than using anchor tags because the click event on them is intercepted, and no additional request to the server is made.

—– COURSE LINKS:
+ Repo – https://github.com/iamshaunjp/vuejs-playlist
+ Atom editor – https://atom.io/a
+ Download GIT – https://git-scm.com/
+ Vue docs – https://vuejs.org/v2/guide/

———————————————————————————————
You can find more front-end development tutorials on CSS, HTML, JavaScript, jQuery, WordPress, Node.js & more on the channel homepage…

SUBSCRIBE TO CHANNEL – https://www.youtube.com/channel/UCW5YeuERMmlnqo4oq8vwUpg?sub_confirmation=1

========== PSD to WordPress Playlist ==========

https://www.youtube.com/playlist?list=PL4cUxeGkcC9gnow7e45LQFkNVxwQ5BH-W

============ Node.js for Beginners Playlist =============

https://www.youtube.com/playlist?list=PL4cUxeGkcC9gcy9lrvMJ75z9maRw4byYp

============== The Net Ninja =====================

For more front-end development tutorials & to black-belt your coding skills, head over to – https://www.youtube.com/channel/UCW5YeuERMmlnqo4oq8vwUpg or http://thenetninja.co.uk

================== Social Links ==================

Twitter – @TheNetNinja – https://twitter.com/thenetninjauk

4 COMMENTS

  1. Given the routes in the example, only the / route needs the exact attribute specified. Since /add doesn't have any children it would never be falsely active.

  2. Hello NN master! I think we can also set that background and color style on .router-link-exact-active instead of .router-link-active, in which setting "exact" attribute on router-link is not necessary.

LEAVE A REPLY

Please enter your comment!
Please enter your name here