[Vuejs]-How to import javascript files to use with Vue-Router

0👍

Easiest way of importing jQuery to vue project.

install dependencies

npm install vue-jquery –save

In the main.js file

import vue-jquery from ‘vue-jquery’

Vue.use(vue-jquery)

You have to install with npm if you want to use external libraries in vue. Then you import it the same way i imported jQuery above.

AdminLTE Vue

This is the Vue AdminLTE try it. Here you just have to execute npm i.

https://vuejsadmin.com/product/vue2-admin-lte/

Leave a comment