Hai... Please help me to know how to implement an external js plugin (EG: owl-carousel) in my ionic page


#1

Index.html:

script src=“assets/js/owl-carouse.js”>

item-list.html:

1 2 3 4 5

item-list.ts:

import * as $ from ‘jquery’;

ionViewDidLoad() {
$("#mylist").owlCarousel({
items:3,
touchDrag:true;
});
}

but this core not working…

i have installed jquery like this
npm install jquery --save
typings install dt~jquery --global --save


#2

Hi, why would you do this? Ionic has his own slider :wink:


#3

oh? thanks, am just a beginner in this… and also help me to know how to implement an external plugin which ionic doesn’t have @mcihak


#4

In most cases you do not need external plugins. If so, can you please give an example?


#5

Does this here help?


#6

jquery-scrollbox ?