Generate Carousel through Angularjs + Mysql + PHP + Bootstrap

0

I ask your help to solve the following ... I'm doing a carousel with AngularJs, where I get the images from the bd, it does it well when it's just an image but when it's two or more it does not work anymore .. I would have to be a div active but I already tried to do it with several possible solutions but no .. this code is the one I am using.

<div class="carousel-item slider-fullscreen-image" ng-class="{active:!$index}" ng-repeat="x in sliders" style="background-image: url({{x.image_main}});">
  <div class="container container-slide">
    <div class="image_wrapper">
      <div class="mbr-overlay" style="opacity: 0.5;">
      </div>
      <img ng-src="{{x.image_main}}">
      <div class="carousel-caption justify-content-center">
        <div class="col-10 align-center">
          <h2 class="mbr-fonts-style display-2">{{x.title}}</h2>
          <p class="lead mbr-text mbr-fonts-style display-7">
            {{x.caption}}
          </p>
        </div>
      </div>
    </div>
  </div>

Thanks for your help!

    
asked by Checo 28.05.2018 в 06:21
source

0 answers