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.
Building a list view with detail links
From the course: Building Laravel and Vue.js 2 Web Apps
Building a list view with detail links
- [Instructor] Now we'll create an item list component that shows the items in the selected category in the form of links that will allow us to edit them. We'll take a top-down approach instead of the router first. So, we'll add a route for items. The path will be slash items, the name will be items, and the component we'll call MenuItemList. And, before I forget, I'd just like to import this up here, even though I haven't yet created it. And now we can add a router link for the items view. I'll put it between our existing links, and it will be a router link to a named route called items. And the link text can just be items. We'll also add a route for editing an item. So this path will be slash edit item, name will be edit item without the slash, and the component will the same MenuItem component that add-item uses. Edit-item will also need to take an ID parameter, which we specify with colon ID. And if we set props to true, then this will automatically provide the ID as a prop to 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
-
-
-