New Research: Supply Chain Attack on Axios Pulls Malicious Dependency from npm.Details →
Socket
Book a DemoSign in
Socket

ngScroll

Package Overview
Dependencies
Maintainers
1
Versions
3
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

ngScroll

smooth scrolling, pull to refresh and infinite loading, for Angular 1.x

latest
Source
npmnpm
Version
1.0.2
Version published
Weekly downloads
3
Maintainers
1
Weekly downloads
 
Created
Source

Angular Scroll Component version

smooth scrolling, pull to refresh and infinite loading, for Angular 1.x

Demo

see sample code in folder /demo. And checkout demo here

Quick Start


  <scroll on-refresh="onRefresh"
          on-infinite="onInfinite"
          delegate-id="'myScroller'">
    <!-- content in scroller -->      
    <div class="item" ng-repeat="it in items">
      <span ng-bind="it"></span>
    </div>
  </scroll>


// code in controller ... 

  $scope.$watch('items', function (newVal, oldVal) {
    $scope.$broadcast('$finishPullToRefresh');
    var scroller = $scroller.get('myScroller');
    if (scroller) scroller.resize();
  });
  
  $scope.onRefresh = function () {
    $timeout(function () {
      // do change items
    }, 2000);
  };
  
  $scope.onInfinite = function () {
    $timeout(function () {
      // do change items
    }, 2000);
  };

// code in controller ... 

Keywords

angular

FAQs

Package last updated on 13 Oct 2016

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts