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
From the course: Building Laravel and Vue.js 2 Web Apps
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…
Practice while you learn with exercise files
Download the files the instructor uses to teach the course. Follow along and learn by watching, listening and practicing.
Contents
-
-
-
-
-
Protecting admin pages with gates4m 30s
-
(Locked)
Installing and configuring Vue Router4m 56s
-
(Locked)
Using props and router-link4m 50s
-
(Locked)
Enabling Vue Router history mode5m 38s
-
(Locked)
Validating form submissions5m 23s
-
(Locked)
Displaying model validation errors5m 43s
-
(Locked)
Managing file uploads6m 50s
-
(Locked)
Working with related models4m 39s
-
(Locked)
Building a list view with detail links6m 4s
-
(Locked)
Reusing form components3m 56s
-
(Locked)
Using Laravel form requests3m 48s
-
(Locked)
Using Vue Router navigation guards3m 37s
-
-
-