Skip to content

Commit

Permalink
Automatic scrolling
Browse files Browse the repository at this point in the history
  • Loading branch information
Vijeinath committed Oct 9, 2020
1 parent 7819f5a commit ac6466b
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/app/app-routing.module.ts
Original file line number Diff line number Diff line change
Expand Up @@ -60,7 +60,9 @@ const routes: Routes = [
];

@NgModule({
imports: [RouterModule.forRoot(routes)],
imports: [RouterModule.forRoot(routes, {
scrollPositionRestoration: "enabled"
})],
exports: [RouterModule]
})
export class AppRoutingModule { }

0 comments on commit ac6466b

Please sign in to comment.