krescruz / angular-materialize

Angularjs directives for Materialize CSS Framework https://github.com/Dogfalo/materialize
MIT License
397 stars 129 forks source link

Slider within ng-repeat to generate images not working #189

Closed rauldearaujo closed 7 years ago

rauldearaujo commented 8 years ago

In this case, the slider shows a grey background.

<div class="slider" slider>
      <ul class="slides">
        <div ng-repeat="image in images">
            <li>
              <img src="{{image}}">
            </li>
        </div>
      </ul>
  </div>
webbiesdk commented 7 years ago

You have div's under your ul. Try putting the ng-repeat in the li instead, and get rid of the div between the ul and the li, because that might be confusing for the script.

rauldearaujo commented 7 years ago

Very good! Thaks! :D