Complete Vue.js 2 Web Development_ Practical guide to building end-to-end web development solutions with Vue.js 2

(singke) #1
Navigating through the File Tree and Loading Folders from the URL Chapter 5

Making file and folder components


With our data types separated out, we can create individual components to


compartmentalize the data and methods. Create a folder component that accepts a single


property, allowing the folder object variable to be passed through. As the template is so


small, there is no need for a view or