An lightweight, touchable and responsive library to create a carousel for angular
No dependencies, no more HAMMER.
demos available here
You can install the package from our npm package
npm install --save ngx-carousel-lib
First tou need to provide the CarouselModule to your desired Module
import {CarouselModule} from "ngx-carousel-lib";
// In your App's module or Custom Module:
@NgModule({
imports: [
CarouselModule
]
})
Now, you can use CarouselModule as follow:
<carousel-component >
<div class="item-carousel">a</div>
<div class="item-carousel">
<div class="b">
<img src="https://www.losminionsaldia.com/images/mas-minions/minion.png" />
</div>
</div>
<div class="item-carousel">c</div>
<div class="item-carousel">d</div>
</carousel-component>
All slides of carousel must have .item-carousel
Alex Marcos Gutierrez
MIT