angular 5 copy to clipboard code example
Example 1: mat button copy link
<button mat-button [cdkCopyToClipboard]="link">Copy Link</button>
Example 2: copy to clipboard angular
navigator.clipboard.writeText(content).then().catch(e => console.error(e));