diff --git a/projects/demo/src/modules/app/app.routes.ts b/projects/demo/src/modules/app/app.routes.ts index dd049aa2338e..60b144c9d8a1 100644 --- a/projects/demo/src/modules/app/app.routes.ts +++ b/projects/demo/src/modules/app/app.routes.ts @@ -72,12 +72,10 @@ export const ROUTES: Routes = [ }, { path: 'testing/screenshot-bot', - loadChildren: async () => - ( - await import( - '../info/testing/screenshot-github-bot/screenshot-github-bot.module' - ) - ).ScreenshotGithubBotModule, + loadComponent: async () => + import( + '../info/testing/screenshot-github-bot/screenshot-github-bot.component' + ), data: { title: 'Our screenshot bot', }, diff --git a/projects/demo/src/modules/info/testing/screenshot-github-bot/screenshot-github-bot.component.ts b/projects/demo/src/modules/info/testing/screenshot-github-bot/screenshot-github-bot.component.ts index f966f37075bd..d7907ffc793e 100644 --- a/projects/demo/src/modules/info/testing/screenshot-github-bot/screenshot-github-bot.component.ts +++ b/projects/demo/src/modules/info/testing/screenshot-github-bot/screenshot-github-bot.component.ts @@ -1,15 +1,19 @@ import {ChangeDetectionStrategy, Component} from '@angular/core'; +import {TuiDocPageModule} from '@taiga-ui/addon-doc'; +import {TuiLinkModule} from '@taiga-ui/core'; export const SCREENSHOT_BOT_NAME = 'Lumberjack'; export const SCREENSHOT_BOT_LINK = 'https://github.com/apps/lumberjack-bot'; @Component({ + standalone: true, selector: 'screenshot-github-bot', + imports: [TuiDocPageModule, TuiLinkModule], templateUrl: './screenshot-github-bot.template.html', styleUrls: ['./screenshot-github-bot.style.less'], changeDetection: ChangeDetectionStrategy.OnPush, }) -export class ScreenshotGithubBotComponent { +export default class ScreenshotGithubBotComponent { readonly botName = SCREENSHOT_BOT_NAME; readonly botAppLink = SCREENSHOT_BOT_LINK; readonly botRepoLink = 'https://github.com/taiga-family/argus'; diff --git a/projects/demo/src/modules/info/testing/screenshot-github-bot/screenshot-github-bot.module.ts b/projects/demo/src/modules/info/testing/screenshot-github-bot/screenshot-github-bot.module.ts deleted file mode 100644 index ee36c223e3cc..000000000000 --- a/projects/demo/src/modules/info/testing/screenshot-github-bot/screenshot-github-bot.module.ts +++ /dev/null @@ -1,18 +0,0 @@ -import {CommonModule} from '@angular/common'; -import {NgModule} from '@angular/core'; -import {RouterModule} from '@angular/router'; -import {TuiAddonDocModule, tuiGenerateRoutes} from '@taiga-ui/addon-doc'; -import {TuiLinkModule} from '@taiga-ui/core'; - -import {ScreenshotGithubBotComponent} from './screenshot-github-bot.component'; - -@NgModule({ - imports: [ - CommonModule, - TuiAddonDocModule, - TuiLinkModule, - RouterModule.forChild(tuiGenerateRoutes(ScreenshotGithubBotComponent)), - ], - declarations: [ScreenshotGithubBotComponent], -}) -export class ScreenshotGithubBotModule {}