Akryum / meteor-vue2-example

Meteor & Vue 2.0 example
44 stars 22 forks source link

Declaring sub-components #5

Closed EMHmark7 closed 7 years ago

EMHmark7 commented 7 years ago

Hi Guillaume, I am stuck and wanted your opinion.

In this vue2-example, If I want to declare a component globally (named globalComponent), but this component needs subcomponents (I suppose to be declared or loaded before globalComponent), in what folder should I put these déclarations? The globalComponent will be called by many others that need it to be declared before them. So, it could be declared in /lib, but this components needs subcomponents. How can I load something before things in /lib? AND, if possible, I do not want to explicitly import them, but that advantage of the automatic global load (outside /imports)

Also, I do not know if /lib is also loaded on server side.

Thanks, Marc