var app = new Vue({ el: '#app-producer-update', data: { currentSection: 'general', sectionsArray: [ { name: 'general', nameDisplay: 'Général' }, { name: 'prise-commande', nameDisplay: 'Prise de commande' }, { name: 'abonnements', nameDisplay: 'Abonnements' }, { name: 'credit-payment', nameDisplay: 'Crédit / paiement en ligne' }, { name: 'infos', nameDisplay: 'Informations légales' } ] }, methods: { changeSection: function(section) { this.currentSection = section.name ; } } });