how to make a custom directive for copy to cliboard in angular code example
Example: copy to clipboard angular
navigator.clipboard.writeText(content).then().catch(e => console.error(e));
navigator.clipboard.writeText(content).then().catch(e => console.error(e));