S
S
semki0962019-06-01 14:49:07
Vue.js
semki096, 2019-06-01 14:49:07

What does the slot attribute do here?

What does the slot attribute do here? Taken from here https://bootstrap-vue.js.org/docs/components/carousel/

<b-carousel-slide>
        <img
          slot="img" // Что здесь делает атрибут slot?
          class="d-block img-fluid w-100"
          width="1024"
          height="480"
          src="https://picsum.photos/1024/480/?image=55"
          alt="image slot"
        >
      </b-carousel-slide>

Answer the question

In order to leave comments, you need to log in

1 answer(s)
A
Anatoly Chernyshev, 2019-06-02
@semki096

I do not approve. But most likely, the component has a named img slot.5cf3820d56db7724330452.png

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question