Getting Started with Vue.js: #13 Vue Event – Build an Accordion

We’ll continue using Vue to listen for HTML events by building out an accordion. By combining Vue’s ability to add and remove classes with some CSS styles, we can quickly create a working accordion.

To get us started, we’ll be using a Bulma message as our accordion. Whenever a user clicks the message header, then we’ll apply an is-closed class to the message with Vue.

Presented by Chris on Code:
Follow us on Twitter:
Like us on Facebook:
Follow us on Instagram:
We’re hiring:

Duration: 00:09:54
Publisher: DigitalOcean
You can watch this video also at the source.

Inxy Hosting CDN Marketplace