I'm having a data set which is by default have following:
summaries: [{client:'', type: '', mention: '', action: '', comment: '', button: true}],
I've a button which adds the same data set into summaries data:
addSummary() {
this.summaryHeaders = true;
this.summaries.push({
client: '',
type: '',
mention: '',
action: '',
comment:'',
button: true
})
},
Now I'm having other button, while being clicked I want to update button attribute as false of that particular data set. How can I achieve this?