0

I have used mdbootstrap carousel with angular universal. The rest components are working fine but i am getting an issue using carousel on homescreen. The homepage doesnt loads, but when i access different page and call the homepage again the page gets loaded.

My homepage componenet HTML file.

<section style="background-color: #00bfff">
  <div class="home">
    <mdb-carousel [isControls]="false" class="carousel slide carousel-fade" [animation]="'fade'">
      <mdb-slide>
        <div class="container-fluid">
          <div class="home-slider">
            <div></div>
            <div class="home-head">
              <p class="home-head-1">Get your personal career coach</p>
              <br>
              <button class="home-button">KNOW MORE</button>
            </div>
            <div>
              <img class="img-fluid home-img mx-auto d-block" src="/assets/images/slider/1.png" alt="boardinfinity" style="margin-bottom:25px;">
            </div>
          </div>
        </div>
      </mdb-slide>
      <mdb-slide>
        <div class="container-fluid">
          <div class="home-slider">
            <div></div>
            <div class="home-head">
              <p class="home-head-1">Get a career boost with great jobs.</p>
              <br>
              <button class="home-button">KNOW MORE</button>
            </div>
            <div>
              <img class="img-fluid home-img mx-auto d-block" src="/assets/images/slider/2.png" alt="boardinfinity" style="position: relative;top: 3px;">
            </div>
          </div>
        </div>
      </mdb-slide>
    </mdb-carousel>
  </div>
</section>

Any help will be much appreciated.

faizan baig
  • 1,283
  • 15
  • 21

1 Answers1

1

Please try to add [interval]="0" to your <mdb-carousel> element. This should work for you.

wscourge
  • 10,657
  • 14
  • 59
  • 80
Bloodcast69
  • 226
  • 1
  • 3
  • 10