0.1.8 • Published 6 years ago

ng-sticky--fork-squelix v0.1.8

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

ng-sticky - Squelix-custom

remove the top elem AND the position

Angular 4 Directive

Check demo plunker

Demo

Installation

To install this library, run:

$ npm install ng-sticky --save

Consuming the library

Import library in any Angular 4 application by running:

$ npm install ng-sticky

and then from your Angular AppModule:

import { BrowserModule } from '@angular/platform-browser';
import { NgModule } from '@angular/core';

import { AppComponent } from './app.component';

// Import NgStickyDirective
import { NgStickyModule } from 'ng-sticky--fork-squelix';

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

Once the library is imported, you can use the directive:

<div ng-sticky [offSet]="0" [addClass]="'is-sticky'">
  <div>menu</div>
</div>

Development

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

$ npm run build

To lint all *.ts files:

$ npm run lint

License

MIT © Jonas Medeiros

0.1.8

6 years ago

0.1.7

6 years ago

0.1.6

6 years ago

0.1.1

6 years ago

0.1.0

6 years ago