Skip to content

Commit

Permalink
chore(demo): set disable-animation page as standalone
Browse files Browse the repository at this point in the history
  • Loading branch information
splincode committed Jan 26, 2024
1 parent 79bdea5 commit 51bf078
Show file tree
Hide file tree
Showing 3 changed files with 23 additions and 25 deletions.
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 @@ -63,9 +63,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,32 @@
import {NgForOf, NgIf} from '@angular/common';
import {ChangeDetectionStrategy, Component} from '@angular/core';
import {
TuiDocCodeModule,
TuiDocDocumentationModule,
TuiDocPageModule,
TuiDocTabModule,
} 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,
TuiDocTabModule,
TuiDocCodeModule,
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 51bf078

Please sign in to comment.