0.1.0 • Published 7 years ago
ngx-sticky-ps v0.1.0
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 --saveand 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 buildTo lint all *.ts files:
npm run lintLicense
MIT © John Emmons
0.1.0
7 years ago