How do I implement ReCaptcha in a Single Page Application (SPA) How do I implement ReCaptcha in a Single Page Application (SPA) asp.net asp.net

How do I implement ReCaptcha in a Single Page Application (SPA)


I have used ngx-captcha with my angular project.Here's how I kept my submit button disabled until recaptcha checkbox is checked.

   //code <ngx-recaptcha2 (success)="handleSuccess($event)"   #captchaElem [siteKey]="siteKey" formControlName="recaptcha">                </ngx-recaptcha2>

once captcha is filled , it emits a success event , so use it in a method to make a variable true/false based on which you can enable/disable submit button