I\'m experiencing an issue with Angular 2 where changing from one route to another does not automatically scroll to the top of the new view. I realize that Angular 1 allowed
Instead of writing code in each component, I added the following code in one place -
onActivate(e) { window.scrollTo(0, 0); }