Manrix
90
1
Vue

Success notification best practice

Posted 1 month ago by Manrix

Hi. I was reading a guide on building vue js spa apps and noticed that the success message is on client side and not returned by the server:

axios.put('users' + this.user.id, this.user).then((response) => {
    this.message = 'User updated';
}).catch(error => {
    console.log(error);
});

I usually return the message from the server. What is the best way ? How do you do it ? Thanks.

Please sign in or create an account to participate in this conversation.