0.1.0 • Published 6 years ago

ngx-sticky-ps v0.1.0

Weekly downloads
8
License
MIT
Repository
github
Last release
6 years ago

ngx-sticky-ps

An Angular directive that works with NgxPerfectScrollbar to stick components to the page

Usage

<perfect-scrollbar #ps>
  <div ngxStickyPs [perfectScrollBarRef]="ps" [bottomOffset]="10">
  </div>
</perfect-scrollbar>

Installation

To install, run:

npm install ngx-sticky-ps --save

and include the directive in your AppModule:

import { BrowserModule } from '@angular/platform-browser';
import { NgModule } from '@angular/core';
import { AppComponent } from './app.component';
import { NgxStickyPsDirective } from 'ngx-sticky-ps';

@NgModule({
  declarations: [
    AppComponent,
    NgxStickyPsDirective
  ],
  imports: [
    BrowserModule
  ],
  providers: [],
  bootstrap: [AppComponent]
})
export class AppModule { }

Development

To generate all *.js, *.d.ts and *.metadata.json files:

npm run build

To lint all *.ts files:

npm run lint

License

MIT © John Emmons