0.0.7 • Published 2 years ago
ngx-m-carousel v0.0.7
Simple and effective carousel library for angular
Install
Run the below command to install ngx-m-carousel library
npm i ngx-m-carousel
Importing
Import 'NgxMCarouselModule' into main module and add it to imports array
import { NgxMCarouselModule } from 'ngx-m-carousel';
@NgModule({
declarations: [
AppComponent
],
imports: [
NgxMCarouselModule
]
})
Using ngx-m-carousel library
Add 'ngx-m-carousel' component to your html
<ngx-m-carousel
[images]="images"
[delay]="3000"
[height]="'100%'"
[width]="'100%'"
[pauseOnHover]="true"
[indicators]="true"
></ngx-m-carousel>
Add your images to images array in your component.ts
export class AppComponent {
title = 'testApp';
images: String[] = ['./assets/image1.jpg','./assets/image2.jpg','./assets/image3.jpg','./assets/image4.jpg'];
}
//Also supports image url's
PROPERTIES
Thank me!
Thank you for downloading this library. If this library helps you or if you have any queries/suggestion please write it to my email haricshore@gmail.com
.
Missing Features?
If you need any missing feature or if you have any complaint please write it to my email haricshore@gmail.com
.