0

I have a problem with my VUE js project. I use the library VueperSlides and it's run correctly but my problem, is that the slider is imported in the components App.vue and it's displayed. I want to display the slider only in my Slider component. I have a router link which runs correctly.

This is the APP.VUE component

This the HomePage (I want to put away this slider )

This is the Slider Vue

Tibebes. M
  • 6,940
  • 5
  • 15
  • 36

1 Answers1

0

Just import it on your HomePage.vue:

import { VueperSlides, VueperSlide } from "vueperslides";
import "vueperslides/dist/vueperslides.css";

export default {
  components: {
    VueperSlides,
    VueperSlide
  },

  // ...
}

Then use vueper-slides and vueper-slide components on your template.

Hans Felix Ramos
  • 4,264
  • 3
  • 16
  • 40