Is there a tutorial to create an ANGULAR2 slick carousel component.
Or at least can anyone help me include jQuery and slick carousel script in ANGULAR2.
npm install slick-carousel
in your project directory and npm will resolve jquery dependency as well.
...
"scripts": [
"../node_modules/jquery/dist/jquery.min.js",
"../node_modules/slick-carousel/slick/slick.min.js"
],
...
index.html
fileYou 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>
For more documentation, there a demo site: https://github.com/bfwg/ngx-drag-scroll
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With