[Angular] How do I prevent scroll to top on only some pages
Metronic 7.0.4 with Angular 9. I have some pages that I want to disable scrolltop. How can I do this? I've tried many techniques without success.
In the scroll-top component you have access for the
this.router.url (router: Router). It means you can prevent calling method
ScrollTopComponent.goTop() for your some URLs.