From the course: Vue.js 2 Essential Training

Unlock the full course today

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

Building your routes

Building your routes

From the course: Vue.js 2 Essential Training

Start my 1-month free trial

Building your routes

- [Instructor] So, although everything is working pretty well, there's actually a couple of errors that we're getting in our project. And if you go to the console, you can see what they are. It mostly is that we have several methods that aren't really being used. And let me show you where that is and we'll fix that before we get into the routing. In our Products.vue component, we are asking for some events that are never going to be triggered. And that's because each of these events are skipping these Products.vue file and going directly into App.vue. And that happened because we added parent to the emit. So this means that it's not going to trigger anything in products, it's going to straight back up into Apps. All we really need to do is just get rid of this one right here and this other event. And let's save that and refresh the page. And now everything should be working just the same. Let's go ahead and add a few things we can see this coming up. And if we look at the Inspector…

Contents