Skip to content

Commit

Permalink
chore(demo): set changelog page as standalone
Browse files Browse the repository at this point in the history
  • Loading branch information
splincode committed Jan 26, 2024
1 parent cb9cead commit b3f423e
Show file tree
Hide file tree
Showing 3 changed files with 6 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 @@ -28,8 +28,7 @@ export const ROUTES: Routes = [
},
{
path: 'changelog',
loadChildren: async () =>
(await import('../info/changelog/changelog.module')).ChangelogModule,
loadComponent: async () => import('../info/changelog/changelog.component'),
data: {
title: 'Changelog',
},
Expand Down
Original file line number Diff line number Diff line change
@@ -1,11 +1,15 @@
import {AsyncPipe} from '@angular/common';
import {ChangeDetectionStrategy, Component} from '@angular/core';
import {TuiDocPageModule, TuiMarkdownPipe} from '@taiga-ui/addon-doc';

@Component({
standalone: true,
selector: 'changelog',
imports: [TuiDocPageModule, TuiMarkdownPipe, AsyncPipe],
templateUrl: './changelog.template.html',
styleUrls: ['./changelog.component.less'],
changeDetection: ChangeDetectionStrategy.OnPush,
})
export class ChangelogComponent {
export default class ChangelogComponent {
readonly changelog = import('../../../../../../CHANGELOG.md?raw');
}
18 changes: 0 additions & 18 deletions projects/demo/src/modules/info/changelog/changelog.module.ts

This file was deleted.

0 comments on commit b3f423e

Please sign in to comment.