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

    $emit on app extension

    Help
    3
    4
    213
    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.
    • C
      Cosby last edited by

      Hello all
      could you kindly help me with $emit method on app extension? I would raise an event from app extension catching it on parent application. In my app-extension (not UI) I have my boot file with a piece of code like this one:

      export default ({ app, router, store, Vue }) => {
        Vue.prototype.$test = function () {
          //here I want to raise my emit event
        }
      }
      

      I tried using: this.$emit, Vue.$emit, this.$root.$emit, app.$emit but without any result (usually I got un emit is not a function error)

      Can you help me please?

      1 Reply Last reply Reply Quote 0
      • Hawkeye64
        Hawkeye64 last edited by

        @Cosby That’s because the Vue instance hasn’t been instantiated at that point

        1 Reply Last reply Reply Quote 0
        • C
          Cosby last edited by

          Any hints about how to user $emit in boot function defintion?

          dobbel 1 Reply Last reply Reply Quote 0
          • dobbel
            dobbel @Cosby last edited by

            @cosby

            You should tag @Hawkeye64 in your post so he gets an notification of your new message.

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