Skip to content

Commit

Permalink
chore(schematics): valid migration for tuiProvideRoutePageTab (#10141)
Browse files Browse the repository at this point in the history
  • Loading branch information
splincode authored Jan 13, 2025
1 parent b4d691c commit 860843a
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -58,7 +58,7 @@ export function migrateAddonDoc(options: TuiSchema): Rule {
.getFullText()
.replaceAll(
/RouterModule\.forChild\(tuiGenerateRoutes\(\w+\)\)/g,
'RouterModule',
'RouterModule /* use tuiProvideRoutePageTab in provideRouter */',
),
),
);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@ import {ClassesComponent} from './classes.component';
@NgModule({
imports: [
...TuiAddonDoc,
RouterModule,
RouterModule /* use tuiProvideRoutePageTab in provideRouter */,
],
declarations: [ClassesComponent],
exports: [ClassesComponent],
Expand Down

0 comments on commit 860843a

Please sign in to comment.