Question:
Hi i have a situation where i need to register multiple components at run time within a file.Display.vue
- event dispatch component-ready
- eventlisterner in created of file Display.vue will call
load
method
Problem: in my current approach components are registered globally, that i want to avoid. i want to register all components to Display.vue file only
Answer:
To locally register the components on the fly, you can copy the component definitions intothis.$options.components
:If you have better answer, please add a comment about this, thank you!