javascript - AngularJS ui view autoscroll not working -


i'm using angular's ui-router having problem when click on new view, page doesn't start @ top was. set autoscroll true in ui-view others suggested still isn't working. i'm not sure reason not working.

<ui-view autoscroll="true" /> 

the default option true, maybe there's preventing autoscroll firing, need more code. can make custom code that'll work. this

$scope.$on('$routechangesuccess', function () {     window.scrollto(0, 0); }); 

Comments

Popular posts from this blog

swift - Button on Table View Cell connected to local function -

dns - Dokku server hosts two sites with TLD's, both domains are landing on only one app -

c# - ajax - How to receive data both html and json from server? -