[Vuejs]-How to make an image carousel with vue using a photo api

0👍

This isn’t a complete response, but it’s a start, that can be improved by more experienced users:

As you’ll see, your alt text needs customizing to display "First slide","Second slide" etc. and I’m not quite sure about <img :src""

<div
  id="carouselExampleSlidesOnly"
  class="carousel slide"
  data-ride="carousel"
>
  <div class="carousel-inner">
    <section class="images">
      <img
        v-for="image in images"
        :key="image.id"
        :src="image.assets.large.url"
      />

      <img
        class="d-block w-100"
        :src="not sure exactly about what goes here"
        alt="slide"
      />
    </section>
  </div>
</div>

Leave a comment