Skip to content

Commit

Permalink
Merge pull request #48 from alireza-sohrabi/ISSUE-45-improve-documents
Browse files Browse the repository at this point in the history
fix(ng-docs): Home path
  • Loading branch information
alireza-sohrabi committed Jul 24, 2023
2 parents a864844 + 5f94be3 commit f5c5c79
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 f5c5c79

Please sign in to comment.