阅读背景:

如何“记住”angularJS w / Ui.ROUTER中的滚动位置

来源:互联网 

I have a project I'm using angularJS with ui.router and we have a list of events that can be really long (has infinite scroll) if a user clicks on an event to view details a back button is displayed however upon clicking back the scroll of the div resets back to the top! Looking for some suggestions as to if there is anything built in that I might leverage to remember this scroll position, I know theres the anchorscroll service but I am wondering if there isn't something more suited to stop angular from reseting the scroll positions on navigation?? as there are a few similar lists to this that need to remember their state when scrolled.. I've looked into and tried to implement ui-router-extras dsr and sticky but neither are working..I have a project I'm using angularJS with ui.ro




你的当前访问异常,请进行认证后继续阅读剩余内容。

分享到: