Typeerror: Jquery("#slider-full").revolution Is Not A Function
Solution 1:
This means that your RevolutionSlider
is not properly included into the page or it is included after the point at which it is called.
You must check in admin panel if this plugin is installed and turned on successfully.
If yes, you can try to run jQuery("#slider-full").revolution({});
in your console to check if slider is not included later in the code;
Solution 2:
do this :
declarevarjQuery: any;
instead of :
import $ as jquery
and use ngAfterViewInit
finally
jQuery(this.rev_slider.nativeElement).show().revolution(RevSliderConfig)
RevSliderConfig is the object of config
rev_slider is the id of the rev slider in html using ViewChild
Solution 3:
I had a similar issue and in my case, it was being caused by including jQuery twice.
Make sure that you have not included jQuery twice. Check all the scripts that are included on your page and ensure that none of them is including jquery already.
As an example in Laravel, a jquery library is already in public/js/app.js if you add a theme to your Laravel installation the theme might come with its jQuery library for use on some pages. Just make sure that when you are integrating your theme into your Laravel app you include one jQuery.
Post a Comment for "Typeerror: Jquery("#slider-full").revolution Is Not A Function"