Currently, I am working on an angular application and I'm looking for a way to copy text when a button is clicked. I need assistance in creating a function that can achieve this without relying on the clipboard API.
Although I have considered using the clipboard API, I prefer to implement this functionality purely in TypeScript.