I am trying to implement an icon that when clicked will save a variable to the user\'s clipboard. I have currently tried several libraries and none of them have been able to
You can achieve this using Angular modules:
navigator.clipboard.writeText('your text').then().catch(e => console.error(e));