simplebar-angular
v3.3.0
Published
Angular component for SimpleBar
Downloads
54,168
Readme
SimplebarAngular
- 🐦 Follow me on Twitter! or Mastodon!
- 👨💻 I'm available for hire! Reach out to me!
- 🚧 Check out my new project Scroll Snap Carousel!
Installation
- Via npm
npm install simplebar-angular --save
- Via Yarn
yarn add simplebar-angular
Usage
Import module
import { BrowserModule } from '@angular/platform-browser';
import { NgModule } from '@angular/core';
import { SimplebarAngularModule } from 'simplebar-angular';
import { AppComponent } from './app.component';
@NgModule({
declarations: [AppComponent],
imports: [BrowserModule, SimplebarAngularModule],
providers: [],
bootstrap: [AppComponent],
})
export class AppModule {}
Use component
<ngx-simplebar [options]="options">
<div *ngFor="let number of numbers">ngx-simplebar</div>
</ngx-simplebar>
Options
Find the list of available options on the core documentation.