Why is URL not whitelisted in allowed globals? #9886
Unanswered
jfbrennan
asked this question in
Help/Questions
Replies: 2 comments 2 replies
-
See https://vuejs.org/guide/essentials/template-syntax.html#restricted-globals-access You can try expanding the globally accessible properties in the template using the following approach: const app = createApp()
app.config.globalProperties.URL = URL |
Beta Was this translation helpful? Give feedback.
1 reply
-
As per #7939 (comment):
Apart from that, using |
Beta Was this translation helpful? Give feedback.
1 reply
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
Was surprised that I couldn't do this because
URL
is not allowed in templates:Why?
Beta Was this translation helpful? Give feedback.
All reactions