Skip to content

Commit

Permalink
feat(cli): add bindToComponentInputs of ng add (#1630)
Browse files Browse the repository at this point in the history
  • Loading branch information
cipchk authored Aug 28, 2023
1 parent 0e9006e commit 9717d9d
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -60,6 +60,7 @@ const routes: Routes = [
// NOTICE: If you use `reuse-tab` component and turn on keepingScroll you can set to `disabled`
// Pls refer to https://ng-alain.com/components/reuse-tab
scrollPositionRestoration: 'top',
bindToComponentInputs: true
}
)],
exports: [RouterModule],
Expand Down
5 changes: 4 additions & 1 deletion src/app/routes/routes.module.ts
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,10 @@ const routes: Route[] = [
];

@NgModule({
imports: [SharedModule, RouterModule.forRoot(routes, { scrollPositionRestoration: 'enabled' })],
imports: [
SharedModule,
RouterModule.forRoot(routes, { scrollPositionRestoration: 'enabled', bindToComponentInputs: true })
],
declarations: COMPONENTS
})
export class RoutesModule {}

0 comments on commit 9717d9d

Please sign in to comment.