Delkrak
Delkrak
SSolara
Created by Delkrak on 9/15/2024 in #questions-issues
Nested Vue Component import for Web
Thanks! This is very helpful. Referencing ipyvue allowed me to find this example: https://github.com/widgetti/ipyvue/blob/master/examples/hot-reload/mywidget.py 🙂 Based on this i should be able to load a vue component like so instead on in Page:
import solara
import ipyvue


ipyvue.register_component_from_file(
"MyChildComponent",
"ChildComponent.vue",
__file__)

@solara.component_vue("ParentComponent.vue")
def ParentComponent():
pass

@solara.component
def Page():
ParentComponent()
import solara
import ipyvue


ipyvue.register_component_from_file(
"MyChildComponent",
"ChildComponent.vue",
__file__)

@solara.component_vue("ParentComponent.vue")
def ParentComponent():
pass

@solara.component
def Page():
ParentComponent()
7 replies