My main objective: I have incorporated a custom HTML element in a component template (<gcse:searchresults-only>
) and I am interested in registering the element with Vue. The provided method for registering custom elements involves using
app.config.compilerOptions.isCustomElement
.
However, as I am utilizing a single file component and the global app
object is not defined. Is there a way to access it? Alternatively, is there another method of setting configuration options from within a single file component?
Should this be configured from outside the component? It seems logical that since I only require this custom element here, only this specific file should be aware of it instead of managing it in a broader scope.
For reference, this is all taking place within Gridsome.