Consider the following sample and suggest proper way to handle this problem or clear my mind from this kind of thought
data(){
return{
a: true,
b: 5
}
},
someMethod: function(){
/*Currently update using the following lines,
this.a = false
this.b = 6
*/
//Is there anything to update multiple attributes at a single line
//Like in ReactJS
//this.setState({})
//Or correct my VueJS knowledge if im wrong
}
this.a = this.b = falsemyData.aon all the reference instead ofa.