From the course: Vue.js: Creating and Hosting a Full-Stack Site
Unlock this course with a free trial
Join today to access over 25,600 courses taught by industry experts.
Using modular components
From the course: Vue.js: Creating and Hosting a Full-Stack Site
Using modular components
- [Instructor] Okay, now that we've got our entire app set up, there are still a few more things that we should do in order to have our front end in the best possible shape. You may have noticed that when we were building our products page and shopping cart page, that the templates for both of those components were a little bit complex. And let me just open those up so I can show you what I'm talking about in a little bit more detail. We have our products page and our shopping cart page and sure enough, if you look at the structure here there's quite a bit of complexity going on. Now, generally, what we want instead is for our components templates to be dead simple and especially for our page components. And besides that, we also want each of our components to be reusable. All right, now in our case the way that we can improve both the products page and the shopping cart page components is by splitting out the lists…
Contents
-
-
-
Why Vue?4m 24s
-
Setting up and running a Vue project4m 34s
-
(Locked)
Vue project structure5m 31s
-
(Locked)
Creating application pages5m 19s
-
(Locked)
Routing in Vue5m 36s
-
(Locked)
Adding data, styles, and images4m 6s
-
(Locked)
Creating a products page7m 3s
-
(Locked)
Creating a product detail page6m 22s
-
(Locked)
Creating a shopping cart page8m 28s
-
(Locked)
Creating a navigation bar8m 12s
-
(Locked)
Linking to the product detail page2m 28s
-
(Locked)
Creating a 404 page in Vue6m 40s
-
(Locked)
Using modular components6m 17s
-
(Locked)
Challenge: Modular components1m 3s
-
(Locked)
Solution: Modular components4m 48s
-
-
-
-
-
-
-