Skip to content

Commit

Permalink
chore: drop useless functional (#9219)
Browse files Browse the repository at this point in the history
  • Loading branch information
splincode authored Sep 27, 2024
1 parent 6f34522 commit 8e78f6f
Showing 1 changed file with 0 additions and 7 deletions.
7 changes: 0 additions & 7 deletions projects/demo/src/modules/app/abstract.app.ts
Original file line number Diff line number Diff line change
Expand Up @@ -7,8 +7,6 @@ import {TUI_DOC_PAGE_LOADED} from '@taiga-ui/addon-doc';
import {tuiInjectElement, tuiPure, tuiZonefreeScheduler} from '@taiga-ui/cdk';
import {debounceTime, map, type Observable, startWith} from 'rxjs';

import {TUI_SELECTED_VERSION_META} from './version-manager/version-manager.providers';

export const DEMO_PAGE_LOADED_PROVIDER = {
provide: TUI_DOC_PAGE_LOADED,
deps: [ElementRef, ResizeObserverService],
Expand Down Expand Up @@ -38,18 +36,13 @@ export const DEMO_PAGE_LOADED_PROVIDER = {

@Directive({
standalone: true,
host: {
'[attr.data-tui-major-version]': 'majorVersion',
},
})
export abstract class AbstractDemo implements OnInit {
protected abstract readonly storage: Storage;
protected abstract readonly router: Router;

private readonly element = tuiInjectElement();

protected readonly majorVersion = inject(TUI_SELECTED_VERSION_META)?.title;

protected readonly pageLoaded = inject(TUI_DOC_PAGE_LOADED)
.pipe(takeUntilDestroyed())
.subscribe(() => this.element.classList.add('_loaded'));
Expand Down

0 comments on commit 8e78f6f

Please sign in to comment.