-1

i am using Vue js and laravel So for frontend I need Jquery library Which is i included directly but after that Jquery library not working.

Any suggested and Good way to include in Vue js application. I Have Jquery Library jquery.lineProgressbar.js

How this called via Vue js

Advanced Thanks for all

Impunkj
  • 129
  • 2
  • 14

1 Answers1

1

It is generally not recommended to integrate jQuery with VueJS, as they are likely to clash and overlap in functionality. In other words, what you can achieve with jQuery, you can achieve with VueJS (it's a front-end framework).

Having said that, if you're still interested to try and integrate jQuery with VueJS, I believe this article has the answers: https://vuejsdevelopers.com/2017/05/20/vue-js-safely-jquery-plugin/

Barzev
  • 402
  • 3
  • 14
  • i have to do lots of ui dashboard chaneg that"s why i am using Jquery library. – Impunkj Jan 31 '19 at 10:01
  • Also this article not telling me how to call Jquery file. I already invoke function via mounted but nothing happen – Impunkj Jan 31 '19 at 10:02
  • Did you have a look at the JSBin included in the article - https://jsbin.com/bepikonube/2/edit?html,js,output . Try including the file as a script in your html, i.e. `` – Barzev Jan 31 '19 at 10:03
  • did it same way but that is not working. – Impunkj Jan 31 '19 at 10:06
  • Without any code and error logs, it is very difficult to help. Perhaps you can setup an example of what you're trying to achieve in a code playground/sandbox such as jsbin, jsfiddle, codepen, etc. – Barzev Jan 31 '19 at 10:11
  • I just want to know how to call any JS library in vue js in Laravel. – Impunkj Jan 31 '19 at 10:15