1👍
✅
Use computed
I think it should work
<td>{{status}}</td>
computed: {
status(){
if(dateEvent.status === 'O'){
return `<button" type="button" class=" taskButton btn-default"><a style="color:white;">Accept</a></button>`
}else{
if(dateEvent.status === 'P'){
return 'In Progress'
}else{
return 'Completed'
}
}
}
}
👤Omer
Source:stackexchange.com