Skip to content

Commit

Permalink
chore(demo): set ssr page as standalone (#6566)
Browse files Browse the repository at this point in the history
  • Loading branch information
splincode authored Jan 26, 2024
1 parent 0148328 commit 139a86a
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 19 deletions.
2 changes: 1 addition & 1 deletion projects/demo/src/modules/app/app.routes.ts
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@ export const ROUTES: Routes = [
},
{
path: 'ssr',
loadChildren: async () => (await import('../info/ssr/ssr.module')).SsrModule,
loadComponent: async () => import('../info/ssr/ssr.component'),
data: {
title: 'Server Side Rendering (SSR)',
},
Expand Down
6 changes: 5 additions & 1 deletion projects/demo/src/modules/info/ssr/ssr.component.ts
Original file line number Diff line number Diff line change
@@ -1,9 +1,13 @@
import {Component} from '@angular/core';
import {changeDetection} from '@demo/emulate/change-detection';
import {TuiDocPageModule} from '@taiga-ui/addon-doc';
import {TuiLinkModule} from '@taiga-ui/core';

@Component({
standalone: true,
selector: 'ssr',
imports: [TuiDocPageModule, TuiLinkModule],
templateUrl: './ssr.template.html',
changeDetection,
})
export class SsrComponent {}
export default class SsrComponent {}
17 changes: 0 additions & 17 deletions projects/demo/src/modules/info/ssr/ssr.module.ts

This file was deleted.

0 comments on commit 139a86a

Please sign in to comment.