I am using:
gotoAbout() {
this.router.navigate(['/'], { fragment: 'about' })
}
because routerLink and a href="#about" reloaded my page if I was not on my root / page. Using this function on the nav button it will navigate to /#about in one click without reloading the page but the problem is it is not jumping to that div at all like a href="#about" does when I am scrolled away from it on the page. Is there a way to achieve this in angular?