Skip to content

Commit

Permalink
chore(demo): changed main app-bar example component to standalone, ch…
Browse files Browse the repository at this point in the history
…anged routing
  • Loading branch information
KrollikRoddzer committed Mar 11, 2024
1 parent 9864702 commit 455ded3
Show file tree
Hide file tree
Showing 3 changed files with 10 additions and 36 deletions.
11 changes: 4 additions & 7 deletions projects/demo/src/modules/app/app.routes.ts
Original file line number Diff line number Diff line change
Expand Up @@ -1031,14 +1031,11 @@ export const ROUTES: Routes = [
title: 'Preview',
},
},
{
route({
path: 'navigation/app-bar',
loadChildren: async () =>
(await import('../components/app-bar/app-bar.module')).ExampleTuiAppBarModule,
data: {
title: 'AppBar',
},
},
loadComponent: async () => import('../components/app-bar/app-bar.component'),
title: 'AppBar',
}),
{
path: 'navigation/tab-bar',
loadChildren: async () =>
Expand Down
Original file line number Diff line number Diff line change
@@ -1,13 +1,17 @@
import {Component} from '@angular/core';
import {changeDetection} from '@demo/emulate/change-detection';
import type {TuiDocExample} from '@taiga-ui/addon-doc';
import {TuiAddonDocModule, type TuiDocExample} from '@taiga-ui/addon-doc';

import {TuiAppBarExample1} from './examples/1';

@Component({
standalone: true,
selector: 'example-tui-app-bar',
imports: [TuiAddonDocModule, TuiAppBarExample1],
templateUrl: './app-bar.template.html',
changeDetection,
})
export class ExampleTuiAppBarComponent {
export default class ExampleTuiAppBarComponent {
protected readonly exampleModule = import('./examples/import/import-module.md?raw');
protected readonly exampleHtml = import('./examples/import/insert-template.md?raw');

Expand Down
27 changes: 0 additions & 27 deletions projects/demo/src/modules/components/app-bar/app-bar.module.ts

This file was deleted.

0 comments on commit 455ded3

Please sign in to comment.