79585689

Date: 2025-04-22 04:24:30
Score: 1
Natty:
Report link

My new Angular 17+ app I need this issue again. My app.config is like that:

provideRouter(
  routes,
  withInMemoryScrolling({
    anchorScrolling: 'enabled',
    scrollPositionRestoration: 'enabled',
  }),
),

and routerLink from the button is like that:

<button [routerLink] = "['/c2']" fragment="c2id"> Link </button>

After taht anchor scolling has worked perfectly

Reasons:
  • Blacklisted phrase (0.5): I need
  • Has code block (-0.5):
  • Self-answer (0.5):
  • Low reputation (0.5):
Posted by: Odilbek Utamuratov