This repository was archived by the owner on Apr 12, 2024. It is now read-only.
This repository was archived by the owner on Apr 12, 2024. It is now read-only.
Allow $anchorScroll.scroll() independent of location.hash #4568
Closed
Description
I'm wondering if there is a specific reason $anchorScroll can only scroll to the hash location and if this could be extended to simply allow an ID to be passed in to the scroll() function to override hash.
https://github.com/angular/angular.js/blob/master/src/ng/anchorScroll.js#L72-L86