In my Angular application, I am utilizing an ngx owl carousel with specific configurations set up as follows:
const carouselOptions = {
items: 1,
dots: false,
nav: true,
navText: ['<div class='nav-btn prev-slide'></div>', '<div class='nav-btn next-slide'></div>']
};
<owl-carousel [options]="carouselOptions" [carouselClasses]="['owl-theme','row','sliding']">
<div class="item" *ngFor="let imgUrl of imageList; let i=index">
<img src={{imgUrl}} alt="image slide" />
</div>
</owl-carousel>
I have customized the navigation arrows in the owl carousel by utilizing the navText key within the options. Now, I am looking for a way to include the slide numbers as
(current slide)/(total slide count)
between these custom arrows.
Although I searched the documentation, there doesn't seem to be an option to add step numbers such as 1/7 between the navigation arrows. Can someone suggest a suitable TypeScript solution to achieve this in an Angular application?