Articles
angular
Scroll to the the top of the page automatically in AngularJSangular

You can scroll to the top of the page automatically by injecting Window and using the function scroll(x,y).

Window docs

Scroll to top code example

constructor(
        @Inject('Window') window: Window
) {
    window.scroll(0, 0);
}