From the course: Building Laravel and Vue.js 2 Web Apps

Unlock the full course today

Join today to access over 22,600 courses taught by industry experts or purchase this course individually.

Installing and configuring Vue Router

Installing and configuring Vue Router

From the course: Building Laravel and Vue.js 2 Web Apps

Start my 1-month free trial

Installing and configuring Vue Router

- [Narrator] Next we'll install Vue router and start setting up some client side routing for our menu editor. So in VS code, first I'll leave web-pack running and just open a new terminal with control-shift-backtick. And again, my preference is to run node in NPM in my host shell. For me that's power shell running on windows, and not in the homestead Ubuntu bash shell. So, we'll install view router with NPM installed and use the saved dev option for view router. Because once its complied into app.js, we won't need this module anymore to run the site. The menu editor will basically include the router, and some child components. Our category manager for one and then, a list that displays the menu items by category and a single menu item view that we can use to add-in update menu items. So here, I've already added the script section. And once that's done installing, we should be able to import view router from view router in the node modules folder, and since view is available in the…

Contents