ng-recaptcha
ng-recaptcha copied to clipboard
Add (loaded) event
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.
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!
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.