how to register a custom global component in quasar 0.17.7



  • I started using quasar framework for my new project. I want to register a component globally… we used to do that in main.js by importing vue and using Vue.use(‘component’, funciton () {}) but I don’t see main.js in quasar as quasar handles it internally… I think so.

    So how can I acheive registering a custom global component(not quasar components which are handled in quasar.conf.js) in quasar project initialized with quasar cli?



  • Check out that app plugin section of the docs. This is how to add stuff to Vue through Quasar’s plugin system.

    https://quasar-framework.org/guide/app-plugins.html

    Scott