Skip to content

Commit

Permalink
chore(demo): set jet 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 9520cd1
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 21 deletions.
3 changes: 1 addition & 2 deletions projects/demo/src/modules/app/app.routes.ts
Original file line number Diff line number Diff line change
Expand Up @@ -55,8 +55,7 @@ export const ROUTES: Routes = [
},
{
path: 'testing/jest',
loadChildren: async () =>
(await import('../info/testing/jest/jest.module')).JestModule,
loadComponent: async () => import('../info/testing/jest/jest.component'),
data: {
title: 'Jest',
},
Expand Down
Original file line number Diff line number Diff line change
@@ -1,11 +1,14 @@
import {ChangeDetectionStrategy, Component} from '@angular/core';
import {TuiDocCodeModule, TuiDocPageModule} from '@taiga-ui/addon-doc';

@Component({
standalone: true,
selector: 'jest',
imports: [TuiDocPageModule, TuiDocCodeModule],
templateUrl: './jest.template.html',
changeDetection: ChangeDetectionStrategy.OnPush,
})
export class JestComponent {
export default class JestComponent {
readonly jestConfigJs = import('./examples/jest-config-js.md?raw');
readonly packageJson = import('./examples/package-json.md?raw');
readonly setupJestJs = import('./examples/setup-jest-js.md?raw');
Expand Down
18 changes: 0 additions & 18 deletions projects/demo/src/modules/info/testing/jest/jest.module.ts

This file was deleted.

0 comments on commit 9520cd1

Please sign in to comment.