Sunday, 22 October 2017

angular auto scroll


1, you will need to timeout, if you are going to scroll to a dynamically creating element (ng-repeat) in the same function.
2, you will need to all $anchorScroll("aaa"); without hash(),. otherwise your url will be changed.

3. you will need to create an anchor.

https://stackoverflow.com/questions/30551159/angularjs-anchorscroll-yoffset-within-a-child-element

https://stackoverflow.com/questions/21890060/using-location-and-anchorscroll-to-scroll-a-table-row-into-view





No comments:

Post a comment