ZouYouShun / ngx-hm-carousel

a light carousel for Angular18+, support mobile touch by hammerJs
https://stackblitz.com/edit/stackblitz-starters-nkd5pk?file=src%2Fmain.ts
MIT License
60 stars 10 forks source link

using with another that images, centent html with arrays #15

Closed Paul75 closed 5 years ago

Paul75 commented 5 years ago

Hello,

I want touse your program to slides not image but content html create with the BDD.

I make a service to give datas. I want to call the servie to get result and inset into screen.

But for me it don't works in ngOnInit, for exemple : this.dataSource = this.service.getAllLines();

I've got error in console that this.elem[index] undefined....

Thanks

ZouYouShun commented 5 years ago

H @Paul75, Could you give your example code, I doesn't know your problem clearly.

You can fork this stackblitz to speed up your work. https://stackblitz.com/edit/ngx-hm-carousel-disable-drag

ZouYouShun commented 5 years ago

hellow @Paul75, any update?