I am creating an app, however, I want that when I click Signup, register() executes and upon return of a promise I want to route to the login route.
Instead of staying on the same signup page, I want to route to the login page
register(){
axios.post('url', {
username: this.username,
password:this.password
})
.then(function (response) {
console.log(response);
})
.catch(function (error) {
console.log(error);
});
vue-router?