Skip to content
This repository has been archived by the owner. It is now read-only.
Branch: master
Find file Copy path
Find file Copy path
Fetching contributors…
Cannot retrieve contributors at this time
44 lines (41 sloc) 1.12 KB
<!DOCTYPE html>
<meta charset="utf-8" />
<title>Scroll Trigger</title>
<script src=""></script>
<script src="../dist/scroll-trigger.js"></script>
angular.module('demo', ['scroll-trigger'])
.config(function(ScrollTriggerProvider) {
.controller('InfiniteScrollCtrl', function($scope) {
$scope.imageUrls = [];
$scope.loadMore = function() {
$scope.$applyAsync(function() {
for (var i = 0; i < 10; ++i) {
$scope.imageUrls.push('' + Math.random());
body {
min-height: 1000px;
img {
display: block;
width: 200px;
height: 200px;
<body ng-app="demo">
<section ng-controller="InfiniteScrollCtrl" scroll-trigger="loadMore()"
trigger-at-end trigger-persist trigger-run>
<img ng-repeat="imageUrl in imageUrls" ng-src="{{imageUrl}}" alt="some image">
You can’t perform that action at this time.