This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/** | |
* InfiniteScroll is a AngularJS directive. | |
* This directive calls your callback function when scrolling of an element is reached to the bottom. | |
*/ | |
'use strict'; | |
angular.module('InfiniteScroll', []).directive('infiniteScroll', function () { | |
return { | |
restrict: 'A', | |
scope: { | |
callback: '&infiniteScroll' |