Created
September 19, 2019 15:08
-
-
Save azaharafernandezguizan/376e83bbdc06fc16634799869764fcdc to your computer and use it in GitHub Desktop.
Routing module with anchor scrolling
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
@NgModule({ | |
imports: [ | |
RouterModule.forRoot(routes, { | |
onSameUrlNavigation: "ignore", | |
anchorScrolling:'enabled', | |
scrollPositionRestoration: 'enabled' | |
}) | |
], | |
exports: [RouterModule] | |
}) | |
export class AppRoutingModule {} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment