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 inject vue instance in custom js files

    Help
    3
    3
    135
    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.
    • A
      Azat last edited by

      Hi everyone,
      who knows, what’s the best way to inject Vue instance in non-Vue files.

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

        @Azat import Vue from ‘vue’.

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

          @Azat

          new Vue({
            el: '#app',
            data () {
              return {
                model: false,
              }
            }
          })
          

          Where you have a template like this in HTML:

          <div id="app">
          </div>
          
          1 Reply Last reply Reply Quote 0
          • First post
            Last post