const app = new Vue({ el: '#root', data: { lessons: [...Array(32).keys()].slice(1) }, methods: { onClick(e) { alert(e.target.textContent); }, setDisabled() { this.isDisabled = true; }, toggleClass() { this.isLoading = !this.isLoading; } }, });