diff --git a/projects/cdk/schematics/ng-update/v4/migrate-addon-doc/index.ts b/projects/cdk/schematics/ng-update/v4/migrate-addon-doc/index.ts index 313515bfa037..b903df5d0fdc 100644 --- a/projects/cdk/schematics/ng-update/v4/migrate-addon-doc/index.ts +++ b/projects/cdk/schematics/ng-update/v4/migrate-addon-doc/index.ts @@ -58,7 +58,7 @@ export function migrateAddonDoc(options: TuiSchema): Rule { .getFullText() .replaceAll( /RouterModule\.forChild\(tuiGenerateRoutes\(\w+\)\)/g, - 'RouterModule', + 'RouterModule /* use tuiProvideRoutePageTab in provideRouter */', ), ), ); diff --git a/projects/cdk/schematics/ng-update/v4/tests/schematic-migrate-doc.spec.ts b/projects/cdk/schematics/ng-update/v4/tests/schematic-migrate-doc.spec.ts index aef1a6b5a020..54b383e1b753 100644 --- a/projects/cdk/schematics/ng-update/v4/tests/schematic-migrate-doc.spec.ts +++ b/projects/cdk/schematics/ng-update/v4/tests/schematic-migrate-doc.spec.ts @@ -42,7 +42,7 @@ import {ClassesComponent} from './classes.component'; @NgModule({ imports: [ ...TuiAddonDoc, - RouterModule, + RouterModule /* use tuiProvideRoutePageTab in provideRouter */, ], declarations: [ClassesComponent], exports: [ClassesComponent],