How do I access a remote script's variable inside script setup? #10150
-
I am trying to implement Google Calendar API into a vue3 project using Google's JS guide: https://developers.google.com/calendar/api/quickstart/js The below code shows how I am working around the need for script tags, however I am getting the error
|
Beta Was this translation helpful? Give feedback.
Answered by
coamw2
Jan 18, 2024
Replies: 1 comment
-
Figured it out. You need to use window.gapi and wait for the script to load. Here's my working version:
|
Beta Was this translation helpful? Give feedback.
0 replies
Answer selected by
coamw2
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Figured it out. You need to use window.gapi and wait for the script to load. Here's my working version: