R
R
Roman Rakzin2020-06-17 23:47:34
Angular
Roman Rakzin, 2020-06-17 23:47:34

How to run code from a library inside angular?

How to create object from library, find inside angular ?
I connected the swiperjs slider and being inside the angular code - I can't do something like this

ngAfterViewInit(){
    let swiper = new Swiper('.swiper-container', {
      navigation: {
        nextEl: '.swiper-button-next',
        prevEl: '.swiper-button-prev',
      },
    });
}

Swiper was not found in this file, but in fact I loaded it during assembly loading.
And similar with any other library.
How can I build interaction between angular and other libraries?

Answer the question

In order to leave comments, you need to log in

1 answer(s)
A
Andrew, 2020-06-18
@KickeRockK

How did you connect?
You can use this , many library plugins do this specifically for Angular.
After all, you still need to "drag" it into the
PS component. Do you have any complex ideas? Why didn't Material+Bootstrap carousel suit you?

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question