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: https://twitter.com/chrisoncode
Follow us on Twitter: https://twitter.com/digitalocean
Like us on Facebook: https://www.facebook.com/DigitalOcean
Follow us on Instagram: https://www.instagram.com/thedigitalocean
We’re hiring: http://grnh.se/aicoph1
You can watch this video also at the source.