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.
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
© 2022 - 2024 — McMap. All rights reserved.