Struggling to transfer the $event variable from the HTML file to the .ts file.
The part with (click)="pruebaSwal($event)" is functioning correctly, but the issue arises when trying to pass it inside [style.background-color], resulting in an error message: "ERROR ReferenceError: $event is not defined"
HTML component
<tr>
<input
type="button"
value="{{indice}}"
id="cp{{contador()}}"
(click)="pruebaSwal($event)" <==this one works fine
[style.background-color]="colorStatus(item.id, $event)"> <== i catch the id, but NOT the $event
</tr>
TS component
colorStatus(_id, _event){
let cambio = this.allActivity[_id] //this works fine
let ivi = _event.path[0].id //not finding the _event var
switch (_id) {
...some case functions
}