{"id":26601943,"url":"https://github.com/patrickmarabeas/ng-scrollspy.js","last_synced_at":"2025-12-12T03:20:29.740Z","repository":{"id":11363289,"uuid":"13797828","full_name":"patrickmarabeas/ng-ScrollSpy.js","owner":"patrickmarabeas","description":"An AngularJS module for navigation highlighting","archived":false,"fork":false,"pushed_at":"2016-02-09T09:17:28.000Z","size":5868,"stargazers_count":26,"open_issues_count":5,"forks_count":9,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-03-23T18:53:03.096Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":"http://patrickmarabeas.github.io/ng-ScrollSpy.js","language":"JavaScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/patrickmarabeas.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2013-10-23T08:47:38.000Z","updated_at":"2017-06-08T14:30:37.000Z","dependencies_parsed_at":"2022-09-25T08:51:19.203Z","dependency_job_id":null,"html_url":"https://github.com/patrickmarabeas/ng-ScrollSpy.js","commit_stats":null,"previous_names":["patrickmarabeas/ng-scrollspy"],"tags_count":5,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/patrickmarabeas%2Fng-ScrollSpy.js","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/patrickmarabeas%2Fng-ScrollSpy.js/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/patrickmarabeas%2Fng-ScrollSpy.js/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/patrickmarabeas%2Fng-ScrollSpy.js/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/patrickmarabeas","download_url":"https://codeload.github.com/patrickmarabeas/ng-ScrollSpy.js/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":248069202,"owners_count":21042636,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":[],"created_at":"2025-03-23T18:46:56.107Z","updated_at":"2025-12-12T03:20:29.714Z","avatar_url":"https://github.com/patrickmarabeas.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# ng-ScrollSpy.js\n\n### ng-ScrollSpy is an AngularJS module for navigation highlighting.\n\nGrab it with Bower:\n\n    bower install ng-ScrollSpy.js\n\nInclude it in your AngularJS application\n\n    var myApp = angular.module( 'myApp', [ 'ngScrollSpy' ] );\n    \nThe following line is your navigation item element which will be given an `active` class when the specified ID is spied upon. It is element type unspecific. You can listen for multiple elements with pipe separation.\n\n    \u003cspan data-scrollspy-listen=\"myID\"\u003emyID\u003c/span\u003e\n    \u003cspan data-scrollspy-listen=\"myID|another\"\u003emultiple\u003c/span\u003e\n    \nThis is the element you wish to spy on. Offset can be set specifically on elements as well.\n\n    \u003csection id=\"myID\" data-scrollspy-broadcast data-scrollspy-offset=\"100\"\u003e\u003c/section\u003e\n\nThere are some global config options available:\n\n    myApp.config([ 'scrollspyConfigProvider', function( scrollspyConfigProvider ) {\n        scrollspyConfigProvider.config = {\n            offset: 250, //offset added to element\n            \n            //include your fav throttle function\n            throttle: _.throttle,\n            \n            //or define your own\n            throttle: function(e,t,n){var r,i;return function(){var s=n||this;var o=+(new Date),u=arguments;if(r\u0026\u0026o\u003cr+t){clearTimeout(i);i=setTimeout(function(){r=o;e.apply(s,u)},t)}else{r=o;e.apply(s,u)}}},\n            \n            delay: 100 //the delay between scroll events\n        };\n    }]);\n    \nNOTE: this AngularJS module is simply a scrollspy, anchor linking / smooth scrolling is another modules concern.","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fpatrickmarabeas%2Fng-scrollspy.js","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fpatrickmarabeas%2Fng-scrollspy.js","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fpatrickmarabeas%2Fng-scrollspy.js/lists"}