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
43 lines (39 sloc) 1.07 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'])
.controller('TestCtrl', function($scope) {
$ = function(thing) {
console.log('called with ' + thing);
.run(function() {
var placeholder = document.createElement('div');
var div = document.createElement('div');
div.setAttribute('scroll-trigger', 'call(123)');
div.setAttribute('trigger-at-end', true);
div.setAttribute('ng-controller', 'TestCtrl');
document.body.insertBefore(div, placeholder);
div {
width: 200px;
height: 1000px;
background-color: #147;
.placeholder {
background-color: #000;
<body ng-app="demo">
You can’t perform that action at this time.