how to import one more components with loadModule? #58
-
it's vue2 and i have 2 components to import like this: **
** but loadModule dont support array or map to import the both. and i wish to use button-counter or my-component2 with html label in one div like this please help me how to do it, thank you. |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 1 reply
-
When your main app is loaded through main.vue :
see https://github.com/FranckFreiburger/vue3-sfc-loader/blob/main/docs/examples.md#nested-components |
Beta Was this translation helpful? Give feedback.
When your main app is loaded through
vue3-sfc-loader
, further components can be loaded using import (or require).In most of the cases, only one call to
loadModule()
is needed : for your main .vue file.main.vue :
see https://github.com/FranckFreiburger/vue3-sfc-loader/blob/main/docs/examples.md#nested-components