JSPM

  • Created
  • Published
  • Downloads 11190
  • Score
    100M100P100Q131374F

Angular component for SimpleBar

Package Exports

    This package does not declare an exports field, so the exports above have been automatically detected and optimized by JSPM instead. If any package subpath is missing, it is recommended to post an issue to the original package (simplebar-angular) to support the "exports" field. If that is not possible, create a JSPM override to customize the exports field for this package.

    Readme

    SimpleBar


    NPM version NPM downloads Build Status


    SimplebarAngular

    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.