title: Angular - Unable to use "scrollPositionRestoration"
body: <p>I am currently using Angular 6.1.5. When the website is routed to a different page, I would like for the page to be scroll back to the top. I tried using <code>{ scrollPositionRestoration: 'top' }</code> but it does not work.</p>
  
  <p>Here's my code in app.routing.ts.</p>
  
  <pre><code>export const routing = RouterModule.forRoot(appRoutes, { scrollPositionRestoration: 'top' });
  </code></pre>
  
  <p>Is there an alternative to this? I tried changing from 'top' to enabled' but it does not work as well. I also tried <code>window.scrollTo(0,0);</code> and placed it in <code>ngOnInit()</code> but that doesn't work either.</p>