Search code examples
vuejs2quasar

Correct way to create an ajax request on Quasar Framework


Is adding <script> tag including jquery, then calling $.post or $.get inside .vue is the correct way?


Solution

  • Install jquery using npm

    npm i --save jquery
    

    Then on .vue file, it can be used as usual:

    import jQuery from 'jquery'
    let $ = jQuery
    $.post( ... )