How do I insert anchor tag dynamically in the cell of a table using typescript?

I am trying to insert a working anchor tag as a link inside the HTML table which I am creating dynamically using typescript, but when I add the anchor tag using innerHTML and append it to the cell, The table only shows the text for anchor tag and the link doesn’t work.I am attaching the screenshot of the typescript,html and the frontend.