Back to the Learning!

Laracasts is packed full with over 1,000 lessons just like this one.

Sign up to get full access or log in to your account and sit back.

Published On May. 25th 2018

Learn Vue 2: Step By Step: Reusability: Part 2

Episode 41 Run Time 15:19

Download

Let's continue with our accordion component refactor. In this lesson, we'll create two components: Accordion and AccordionItem. This will allow us to use a data-driven approach to declaring the visibility of each item's associated body.

View the extended source code for this lesson on GitHub.