I'm doing a few things in Vue. And I have a problem here. Apparently there is a mistake here and I have no idea what is wrong. The console says that title has not been set.
var cadastro = new Vue({
el:'#cadastro',
data:{
pagina:0,
titulo:["Dados Pessoais", "Endereço", "Curso"],
titulo_atual: titulo[this.pagina]
},
methods:{
passarPagina: function(e){
e.preventDefault();
this.pagina++;
},
voltarPagina: function(e){
e.preventDefault();
this.pagina--;
}
}
});