Nuclear Pumpkin Mocha

    angular-scroll-events

    0.0.3 • Public • Published

    Angular directives for scroll events

    Utility library to add support for scroll-up and scroll-down events

    Installation

    1. Install 'g1b.angular-scroll-events' with npm or yarn
    npm install angular-scroll-events
    

    or:

    yarn add angular-scroll-events
    
    1. Add 'g1b.scroll-events' module to your app config
    angular.module('myApp', [
      'g1b.scroll-events',
      ...
    ])
    1. Use 'scroll-up' and/or 'scroll-down' directive in a view
    <div scroll-up="log('scroll up')">↑ Scroll Up</div>

    or:

    <div scroll-down="log('scroll down')">↓ Scroll Down</div>

    Example

    See index.html for an example implementation or click here for an interactive demo

    Install

    npm i angular-scroll-events

    DownloadsWeekly Downloads

    103

    Version

    0.0.3

    License

    MIT

    Unpacked Size

    48.2 kB

    Total Files

    8

    Last publish

    Collaborators

    • g1eb