I'm getting acquainted with VueJs and loving it. I'm also looking at using Bootstrap 4 to build my app's UI (both frontend and backend). I've found numerous BS4 admin themes on the Internet.
My question is - in order to use Bootstrap4 and available admin themes, I'll have to make use of jQuery; because that's what BS4 relies on for most of advanced UI components.
So, do I need to include both jQuery and Vue to render my UI? What's your approach towards building UI with these technologies?
Laravel already has jquery available so do not include it again unless you have pages outside the framework. You can check that it is installed through the Chrome console. You can look in resources/assets/js/bootstrap.js and see jquery is available globally out of the box. If you having doubts about it being available, you can run this:
if (jQuery)
console.dir("jQuery "+$().jquery +" loaded");
else
console.dir("jQuery NOT loaded");
@thebigk Yes, it's fine. Though you should avoid manipulating the DOM directly via jQuery and use it mainly for the plugins (you can make a wrapper component around the jQuery plugin). Of course, there are plenty of native Vue packages as well, so if you can find a suitable replacement then all the better.
Edit: here's a couple of links on how to write wrapper components around a jQuery plugin:
Edit2: Bootstrap also lets you use its built-in plugins via data attributes. I think that's fine too, since you don't actually need to write any logic for that.
@thebigk For example, the Bootstrap dropdown works simply by adding data-toggle="dropdown" without the need to touch any JavaScript and manually do something like $('.dropdown-menu').dropdown();.