Skip to content

Commit

Permalink
chore(demo): set disable-animation page as standalone (#6573)
Browse files Browse the repository at this point in the history
  • Loading branch information
splincode authored Feb 2, 2024
1 parent fbc36ea commit d49aaf9
Show file tree
Hide file tree
Showing 4 changed files with 23 additions and 25 deletions.
2 changes: 2 additions & 0 deletions projects/addon-doc/addon-doc.module.ts
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@ import {
TuiDocDocumentationModule,
TuiDocExampleModule,
TuiDocPageModule,
TuiDocTabModule,
} from '@taiga-ui/addon-doc/components';
import {tuiGenerateRoutes} from '@taiga-ui/addon-doc/utils';

Expand All @@ -16,6 +17,7 @@ import {tuiGenerateRoutes} from '@taiga-ui/addon-doc/utils';
TuiDocDocumentationModule,
TuiDocPageModule,
TuiDocExampleModule,
TuiDocTabModule,
],
})
export class TuiAddonDocModule {}
Expand Down
5 changes: 2 additions & 3 deletions projects/demo/src/modules/app/app.routes.ts
Original file line number Diff line number Diff line change
Expand Up @@ -62,9 +62,8 @@ export const ROUTES: Routes = [
},
{
path: 'testing/disable-animation',
loadChildren: async () =>
(await import('../info/testing/disable-animation/disable-animation.module'))
.DisableAnimationModule,
loadComponent: async () =>
import('../info/testing/disable-animation/disable-animation.component'),
data: {
title: 'Disable animation',
},
Expand Down
Original file line number Diff line number Diff line change
@@ -1,12 +1,30 @@
import {NgForOf, NgIf} from '@angular/common';
import {ChangeDetectionStrategy, Component} from '@angular/core';
import {
TuiAddonDocModule,
TuiDocDocumentationModule,
TuiDocPageModule,
} from '@taiga-ui/addon-doc';
import {TuiLinkModule} from '@taiga-ui/core';
import {TuiTabsModule} from '@taiga-ui/kit';

@Component({
standalone: true,
selector: 'disable-animation',
imports: [
NgForOf,
TuiDocDocumentationModule,
TuiDocPageModule,
TuiLinkModule,
TuiTabsModule,
TuiAddonDocModule,
NgIf,
],
templateUrl: './disable-animation.template.html',
styleUrls: ['./disable-animation.style.less'],
changeDetection: ChangeDetectionStrategy.OnPush,
})
export class DisableAnimationComponent {
export default class DisableAnimationComponent {
readonly cypress = import('./examples/cypress.md?raw');
readonly playwright = import('./examples/playwright.md?raw');
}

This file was deleted.

0 comments on commit d49aaf9

Please sign in to comment.