Business
Jobs
  • About Us
  • Solutions
    • Job Postings
      Post your job and receive qualified candidates in 48h.
    • Candidate Assessments
      500+ technical and psychological tests, plus anti-fraud.
    • Headhunting
      Tailor-made executive search from start to finish.
    • Payroll + EOR
      Payroll dispersal and EOR across 15+ LATAM countries.
  • Pricing
  • Jobs

0

361
Views
swiper.js custom pagination doesn't work in Angular js

I am using Swiper for angular and using Angular Swipper wrapper with it. I am trying to add a custom title and description which onclick swipes to next slide.

Here is my HTML code -

    <swiper class="mainheader" [config]="config">
      <div class="swiper-wrapper">

    <div class="swiper-slide" data-pagination-subtitle="Subtitle will come here"
      data-pagination-title="Pagination title will come here" data-pagination-url="">
      <img src="images URL" alt="">
    </div>


    <div class="swiper-slide" data-pagination-subtitle="Subtitle will come here"
      data-pagination-title="Pagination title will come here" data-pagination-url="">
      <img src="images URL" alt="">
    </div>



  </div>

      <!-- Add Pagination -->
      <div class="swiper-pagination01"></div>

      <!-- Add Arrows -->
      <div class="swiper-button-next01"></div>
      <div class="swiper-button-prev01"></div>

</swiper>

Here is my typescript code -

config: SwiperOptions = {

pagination: { 

      el: '.swiper-pagination01', 
      clickable: true,
        renderBullet: function (index, className) {
        return (
          '<span class="' +className +'"><a class="link" href="' + urls[index] + '"><span 
             class="pagination-subtitle">' + subtitles[index] +
          '</span><span class="pagination-title">' + titles[index] + "</span></a></span>"
        );
      },
    },
    navigation: {
      nextEl: '.swiper-button-next01',
      prevEl: '.swiper-button-prev01'
    },
    slidesPerView: 1
  };  

Thank in advance

about 4 years ago · Juan Pablo Isaza
Answer question
Find remote jobs

Discover the new way to find a job!

Top jobs
Top job categories
Business
Post vacancy Pricing Sales
Legal
Terms and conditions Privacy policy
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Show me some job opportunities
There's an error!