Closed mitchn5 closed 2 years ago
I have added data-ride="carousel" or data-wrap="false" and those aren't reflected. The only one that seems to work in html is data-interval.
Hi, well it works in my fork (https://djibe.github.io/material/docs/4.6/components/carousel/)
Hi @djibe, I've tried your carousel example with no luck as well. Is it possible I'm missing something outside of just the html? It's strange that certain options work while others don't.
Apart from bootstrap.bundle.min.js, you just need data-attributes or control with JS. Does your console show an error loading scripts ?
Yea I've included a script tag for bootstrap in index.html, the carousel will only cycle after user clicks next/prev then clicks away from carousel.
Hi guys, I added this to my component.ts page for this html and it fixed my issue.
$(document).ready(function() { // @ts-ignore $('.carousel').carousel({ interval: 5000, ride: 'carousel', touch: true }); });
Upon grabbing the code example from https://daemonite.github.io/material/docs/4.0/components/carousel/ the auto sliding that was shown no longer shows up in my app. My code is below. Our framework is Angular/material-io.