No More Posting New Topics!

If you have a question or an issue, please start a thread in our Github Discussions Forum.
This forum is closed for new threads/ topics.

Navigation

    Quasar Framework

    • Login
    • Search
    • Categories
    • Recent
    • Tags
    • Popular
    • Users
    • Groups
    • Search

    How to use external plugins that use Vue.use to register in Quasar?

    Framework
    2
    2
    3208
    Loading More Posts
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes
    Reply
    • Reply as topic
    Log in to reply
    This topic has been deleted. Only users with topic management privileges can see it.
    • J
      jonaslueder last edited by

      I want to use the CASL Vue plugin in my Quasar app. However, to register the $can method to all component globallly it uses the Vue.use(plugin) function, which as I understand does not work in Quasar.

      I only found this article on it: https://techformist.com/using-vue-plugins-quasar/ which uses an “install” function, that is not available for my plugin though. Any ideas? I want to use the $can method in my template.

      metalsadman 1 Reply Last reply Reply Quote 0
      • metalsadman
        metalsadman @jonaslueder last edited by

        @jonaslueder register it in a boot file https://quasar.dev/quasar-cli/boot-files

        1 Reply Last reply Reply Quote 0
        • First post
          Last post