A simple library for creating carousel for Angular
-
Run
bash yarn add ngx-carousel
orbash npm install ngx-carousel
-
Import NgxCarouselModule into module a module which declares a component intended to have a carousel
import { NgxCarouselModule } from 'ngx-carousel';
@NgModule({
imports: [ NgxCarouselModule ]
})
export class ExampleModule { }
- Usage
<ngx-carousel
[animationTime]="..."
[slideTIme]="..."
[maxWidth]="...">
<div>Slide 1</div>
<div>Slide 2</div>
<div>Slide 3</div>
<div>Slide 4</div>
<div>Slide 5</div>
</ngx-carousel>
git clone https://github.com/reyesoft/ngx-carousel.git
cd ngx-carousel
yarn
yarn start
Run yarn build
to build the project. The build artifacts will be stored in the dist/
directory.
After building your library with ng build ngx-carousel
, go to the dist folder cd dist/ngx-carousel
and run npm publish
.