I am looking for a way to dynamically load a script like recaptcha specifically within the Register.Vue / login.Vue component.
<script src="https://www.google.com/recaptcha/api.js?onload=vueRecaptchaApiLoaded&render=explicit" async defer>
</script>
When I try placing the script tag directly inside my Vue files, it triggers an error:
- Templates are meant for mapping state to UI only. Avoid including tags with side effects in your templates, such as <script>, as they will not be parsed.
Any suggestions on how to resolve this issue?