Skip to content

Commit

Permalink
fix(ng-docs): Home path
Browse files Browse the repository at this point in the history
  • Loading branch information
alireza-sohrabi committed Jul 24, 2023
1 parent a864844 commit 5f94be3
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions src/app/app.module.ts
Original file line number Diff line number Diff line change
Expand Up @@ -22,10 +22,13 @@ export const ngxMatSelectConfigs: NgxMatSelectConfig = {}
BrowserAnimationsModule,
NgDocNavbarModule,
NgDocSidebarModule,
RouterModule.forRoot(NG_DOC_ROUTING, {
RouterModule.forRoot([...NG_DOC_ROUTING,
{path: '', redirectTo: 'introduction', pathMatch: 'full'},
{path: "**", redirectTo: 'introduction', pathMatch: 'full'}], {
scrollPositionRestoration: 'enabled',
anchorScrolling: 'enabled',
scrollOffset: [0, 70]
scrollOffset: [0, 70],

}),
NgDocModule.forRoot(),
NgDocGeneratedModule.forRoot()
Expand Down

0 comments on commit 5f94be3

Please sign in to comment.