Skip to content

Instantly share code, notes, and snippets.

View rbaggett's full-sized avatar

Robert Baggett rbaggett

View GitHub Profile
app.directive('scrollSpy', function ($window) {
return {
restrict: 'A',
controller: function ($scope) {
$scope.spies = [];
this.addSpy = function (spyObj) {
$scope.spies.push(spyObj);
};
},
link: function (scope, elem, attrs) {