sachinchoolur/ngclipboard

Dynamically triggering button does not copy to clipboard

Opened this issue · 0 comments

Hi ,
I have a service that returns data as html table based on parameters and I want that to be copied to the clipboard. If I have that button click programmatically, the onError method is getting fired but when I manually click the same button, onSuccess method is fired and the content gets copied to the clipboard.

I'm in badly need of the programmatic technique to copy the content to clipboard. Can you please guide?

Thanks,
Hemant.