export default { name: 'toggler', data: function() { return { selectedSection: null, } }, methods: { toggleSection: function(sectionName) { if (this.selectedSection === sectionName) { this.selectedSection = null } else { this.selectedSection = sectionName } }, }, }