You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
}
//THIS WORKS
prevImageClick() {
this.slider.prev();
}
//THIS WORKS
nextImageClick() {
this.slider.next();
}
//This is for making the Slider run on the click of a button and I can't make it work
playClicked(){
this.slider.imageAutoSlide();
}
}
The text was updated successfully, but these errors were encountered:
import { Component, Input, OnInit, Output, ViewChild } from '@angular/core';
import { NgImageSliderComponent } from 'ng-image-slider';
@component({
selector: 'app-image-slider',
templateUrl: '
<ng-image-slider [images]="imagesObject" #nav [showArrow]="false" infinite="true"
[imageSize]="{width: '10%', height: 100}" imageClick="imageClick()">
constructor() { }
ngOnInit() {
}
//THIS WORKS
prevImageClick() {
this.slider.prev();
}
//THIS WORKS
nextImageClick() {
this.slider.next();
}
//This is for making the Slider run on the click of a button and I can't make it work
playClicked(){
this.slider.imageAutoSlide();
}
}
The text was updated successfully, but these errors were encountered: