Angular 4 Image sliders [closed]

可紊 提交于 2019-12-20 20:28:38

问题


I'm searching for recommendations for a good Angular4 image slider component, I've tried ngx-bootstrap and ng2-owl-carousel but they don't work as good as they say and theres not too much documentation about them, if you know about a well documented component for Angular4 I'll be grateful for the info!


回答1:


I had recently faced same problem as you for image slider(carousel/slick) in my angular 4 project so as alternative I used:

ngx-slick https://www.npmjs.com/package/ngx-slick (which has good installation guide and usage guide)

Which is compatible with latest version of Angular(4.2.6)




回答2:


You might want to look into ngx-drag-scroll, it has features like mouse drag to scroll and hide scrollbar etc.

Usage example:

<div drag-scroll drag-scroll-y-disabled="true" scrollbar-hidden="true" >
  <img *ngFor="let image of imagelist" [src]="'you_assets_path' + image" />
</div>

demo site: https://bfwg.github.io/ngx-drag-scroll/ It is also compatible with latest version of Angular(5.0.1)



来源:https://stackoverflow.com/questions/44857227/angular-4-image-sliders

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!