Having trouble getting the click event to trigger in TypeScript. I have a table with a div inside it. Initially, the table data is not loading correctly. However, manually clicking on the table refreshes the data. How can I programmatically trigger the click event on the table in TypeScript?
Here is the code in app.component.html:
<sdk-table [data]="tableData">
<div id="content"></div>
</sdk-table>
And here is the TypeScript code in app.component.ts:
ngOnInit(){
let element: HTMLElement = document.getElementById('content') as HTMLElement;
element.click();
}