Vuejs notes

Mass registering global components

Import top level components and export them as an Array:

Then in main.js we loop through the components and register them globally:

 

Useful Vuejs libraries

https://cdn.jsdelivr.net/npm/v-mask/dist/v-mask.min.jsĀ  can be used for phone and zip code masks to prevent bad input. Also works with Element UI. Just include via cdn and then can be used as a directive i.e. :