Open Amitshaale opened 4 years ago
Hi @Amitshaale !
Did you try scrollPositionRestoration: 'top'
Hi @tomastrajan
I have tried this solution but it's not working scrollPositionRestoration: 'top'
@Amitshaale which browser/ os ?
@tomastrajan Chrome in mac os.
I think with module routing it's not working.
@tomastrajan any solution on this issue?
I have tried with this code but still it's not working...
const routerOptions: ExtraOptions = { useHash: false, anchorScrolling: 'enabled', scrollPositionRestoration: 'enabled', scrollOffset: [0, 0] // [x, y] }
@tomastrajan issue still not fixed. how to fix?
@Amitshaale
Try this. It's working.
const elmnt = document.getElementById(id); elmnt.scrollIntoView({behavior: 'smooth'});
Hi,
On changing route page is showing from bottom it should be from start(Top).
I have tried for fix but still I it's not fixed. can you help please?
my code is here in app.routing.module.ts