1.6.3 • Published 1 year ago

ngx-scroll-carousel v1.6.3

Weekly downloads
-
License
MIT
Repository
github
Last release
1 year ago

ngx-scroll-carousel

Scroll carousel library for Angular.

Official documentation: https://astritdemiri.com/ng-library/ngx-scroll-carousel

Simple example using ngx-scroll-carousel: https://stackblitz.com/github/astritdemiri11/ngx-scroll-carousel-example

Get the complete changelog here: https://github.com/astritdemiri11/ngx-scroll-carousel/releases

Table of Contents

Installation

First you need to install the npm module:

npm install ngx-scroll-carousel --save

Choose the version corresponding to your Angular version:

Angularngx-scroll-carousel
14 (ivy only)1.x+

Usage

1. Import the ScrollCarouselModule:

Finally, you can use ngx-scroll-carousel in your Angular project. You have to import ScrollCarouselModule in the root NgModule of your application.

import {BrowserModule} from '@angular/platform-browser';
import {NgModule} from '@angular/core';
import {ScrollCarouselModule} from 'ngx-scroll-carousel';

@NgModule({
    imports: [
        BrowserModule,
        ScrollCarouselModule
    ],
    bootstrap: [AppComponent]
})
export class AppModule { }
SharedModule

If you use a SharedModule that you import in multiple other feature modules, you can export the ScrollCarouselModule to make sure you don't have to import it in every module.

@NgModule({
    exports: [
        CommonModule,
        ScrollCarouselModule
    ]
})
export class SharedModule { }

Note: Module services are provided in root @Injectable({ providedIn: 'root' }), see Dependency Injection.

Use the service, the pipe, the component or the directive:

You can either use the CarouselComponent exported by library

This is how you use the component to create the carousel:

<carousel [configs]="carouselConfigs">
  <div *ngFor="let item of items" carouselItem>{{ item }}</div>
</carousel>
1.4.6

1 year ago

1.6.3

1 year ago

1.4.5

1 year ago

1.6.2

1 year ago

1.4.4

1 year ago

1.4.3

1 year ago

1.5.1

1 year ago

1.4.1

1 year ago

1.3.2

1 year ago

1.3.1

1 year ago

1.4.9

1 year ago

1.4.8

1 year ago

1.4.7

1 year ago

1.3.0

2 years ago

1.2.1

2 years ago

1.2.0

2 years ago

0.0.0-watch

2 years ago

1.1.2

2 years ago

1.1.1

2 years ago

1.1.0

2 years ago

1.0.6

2 years ago

1.0.5

2 years ago

1.0.4

2 years ago

1.0.3

2 years ago

1.0.2

2 years ago

1.0.1

2 years ago

1.0.0

2 years ago

0.0.1

2 years ago