Angular: scrollIntoView not working on route change without setTimeout in ngAfterViewInit
I have an Angular component where I want to use scrollIntoView when the route changes. Here’s the relevant code snippet from my component:
I have an Angular component where I want to use scrollIntoView when the route changes. Here’s the relevant code snippet from my component: