I spend my first couple of hours with Angular JS and I am trying to write a SPA with it. However, on changing route, the scroll position remains at its current position after ch
As per the ngView documentation:
ngView
autoscroll(optional) string: Whether ngView should call $anchorScroll to scroll the viewport after the view is updated.
autoscroll(optional) string:
Whether ngView should call $anchorScroll to scroll the viewport after the view is updated.
So all you have to do is change your ng-view call to turn on autoscroll like so:
ng-view