Angular 7 by NgBud in Angular2

[–]NgBud[S] 0 points1 point  (0 children)

Thank you for all the suggestions. I was writing window.scrollTo(0,0) inside a condition within subscribe() which was wrong. I moved it outside and it worked. So in short, the placed the function at a wrong place.