Enable scroll position restoration in app routing
This commit is contained in:
parent
6f0c667bdd
commit
b256b9f66b
|
|
@ -45,7 +45,9 @@ const routes: Routes = [
|
||||||
],
|
],
|
||||||
imports: [
|
imports: [
|
||||||
BrowserModule,
|
BrowserModule,
|
||||||
RouterModule.forRoot(routes),
|
RouterModule.forRoot(routes, {
|
||||||
|
scrollPositionRestoration: 'enabled',
|
||||||
|
}),
|
||||||
NgOptimizedImage,
|
NgOptimizedImage,
|
||||||
CopyIpComponent,
|
CopyIpComponent,
|
||||||
],
|
],
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue
Block a user