I am using the ClipboardModule from @angular/cdk/clipboard to copy data from my angular form, the problem is that i just realized that my CopyDeatils() method is being called continuously but the value is only copied when the button is pressed.
here is my code:
CopyDetails(): string {
return "details ...";
}
and this is how it is being called:
<button [cdkCopyToClipboard]="CopyDetails()" type="button">Copy</button>