Here is an array containing the headers for a table:
headers=['Ticket ID','Title','Date','Category','Read']
I am using this array to populate the headers in my table, like so:
<tr><th *ngFor="let header of headers" scope="col">{{ header }}</th></tr>
Currently, I am looking for a way to add a click event only to the Ticket ID and Date headers. Is there a way to do this?