{"id":17458113,"url":"https://github.com/pocesar/angular-unamed-scroll","last_synced_at":"2025-04-02T21:29:45.115Z","repository":{"id":36130081,"uuid":"40433455","full_name":"pocesar/angular-unamed-scroll","owner":"pocesar","description":"Scroll to elements on page without relying on IDs. Adds named elements to the service, then scroll to them anywhere in your code","archived":false,"fork":false,"pushed_at":"2015-08-09T12:47:13.000Z","size":192,"stargazers_count":1,"open_issues_count":0,"forks_count":0,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-03-29T00:34:25.288Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"TypeScript","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/pocesar.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":"2015-08-09T11:01:00.000Z","updated_at":"2015-08-09T12:47:54.000Z","dependencies_parsed_at":"2022-08-30T16:11:17.500Z","dependency_job_id":null,"html_url":"https://github.com/pocesar/angular-unamed-scroll","commit_stats":null,"previous_names":[],"tags_count":1,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/pocesar%2Fangular-unamed-scroll","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/pocesar%2Fangular-unamed-scroll/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/pocesar%2Fangular-unamed-scroll/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/pocesar%2Fangular-unamed-scroll/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/pocesar","download_url":"https://codeload.github.com/pocesar/angular-unamed-scroll/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":246895473,"owners_count":20851277,"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":"2024-10-18T03:54:40.578Z","updated_at":"2025-04-02T21:29:45.084Z","avatar_url":"https://github.com/pocesar.png","language":"TypeScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# angular-unamed-scroll\n\nScroll to elements on page without relying on IDs. Adds named elements to the\nservice, then scroll to them anywhere in your code.\n\nIt's actually an oxymoron. You name your elements, you just don't rely on the ID attribute.\n\n## Install\n\n```bash\nbower install angular-unamed-scroll\n```\n\n## Usage\n\nHTML\n\n```html\n\u003cdiv ng-controller=\"SomeCtrl as ctrl\"\u003e\n    \u003cdiv unamed-scroll=\"name\"\u003e\u003c/div\u003e\n\n    \u003ca ng-click=\"ctrl.go('name')\"\u003e\u003c/a\u003e\n\u003c/div\u003e\n```\n\nJS\n\n```js\nangular\n.module('YourApp', ['UnamedScroll'])\n.controller('SomeCtrl', ['UnamedScroll', function(UnamedScroll){\n    this.go = function(name){\n        UnamedScroll.scrollTo(name).then(function(exists){\n            // exists will be true if the element exists, false otherwise\n            // so it's safe to call when the element doesn't exist on the page\n        });\n    };\n}])\n;\n```\n\n## License\n\nMIT\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fpocesar%2Fangular-unamed-scroll","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fpocesar%2Fangular-unamed-scroll","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fpocesar%2Fangular-unamed-scroll/lists"}