Angular ngx-clipboard not working

Hello, I am using angular as front end framework and implementing copy to clipboard function… Currently I am using , I have this button, when user clicks on button, he gets generated URL copied to clipboard. On every browser it works fine, but in Brave I get link copied to clipboard only after second click on the button… Any solutions ?

Sorry, problem was in my code, I was still using angular material CDK clipboard, which is working on second clik, ngx-clipboard works perfectly on first click

1 Like