autocar
1
return {
methods: {
next_btn: function () {
alert(test);
localStorage.setItem("first_user", "yes");
mainView.router.navigate({ name: 'login-signup' });
},
},
}
here I’m getting a error on @click function ( Illegal return statement )
shastox
2
Покажите минимальный пример на jsfiddle
autocar
3
к сожалению, я не достал вас
shastox
4
Show a minimal code on jsfiddle
Where did you put that code and how to load it?
autocar
6
I put that code in my index.html page
The code example you have posted can be used only in single file page components in routes loaded with componentUrl
https://framework7.io/docs/router-component.html#single-file-component