ng-recaptcha icon indicating copy to clipboard operation
ng-recaptcha copied to clipboard

Add (loaded) event

Open yktoo opened this issue 3 years ago • 2 comments

Thanks for the great component!

It'd be very nice to have some callback, e.g. (loaded) event, in <re-captcha>, without needing to create a customized RecaptchaLoaderService.

Loading the CAPTCHA may take a while, especially on a slow connection, so it'd make sense to display a spinner in the containing element. That spinner could then be removed in the proposed (loaded) event handler.

yktoo avatar Jul 25 '21 10:07 yktoo

Hi @yktoo ! You are absolutely right, having such an event would certainly be a useful addition to the component API. Maybe even include a RecaptchaLoaderService.preload() method for potential onHover preloading 🤔

I'll look into it, thank you for the suggestion!

DethAriel avatar Jun 25 '22 05:06 DethAriel

It would be really nice feature, I also need loaded event. I want to add transform style on fully rendered dynamic captcha but since i don't know when captcha is rendered i am unable to call my function which will reset transform on captcha load. Currently I am using javascript setTimeout function with some timeout and inside that i am calling my transform function.

pavandixit93 avatar Jan 02 '23 13:01 pavandixit93