From 20bcb569845772b3baae46c986d8b61c1578c794 Mon Sep 17 00:00:00 2001 From: "sweep-ai[bot]" <128439645+sweep-ai[bot]@users.noreply.github.com> Date: Fri, 29 Mar 2024 12:21:21 +0000 Subject: [PATCH] feat: Updated projects/demo/src/modules/components --- .../src/modules/components/sheet-dialog/examples/1/index.ts | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/projects/demo/src/modules/components/sheet-dialog/examples/1/index.ts b/projects/demo/src/modules/components/sheet-dialog/examples/1/index.ts index b498980c38ad..be51e73bce5d 100644 --- a/projects/demo/src/modules/components/sheet-dialog/examples/1/index.ts +++ b/projects/demo/src/modules/components/sheet-dialog/examples/1/index.ts @@ -1,4 +1,4 @@ -import {Component, inject, DestroyRef} from '@angular/core'; +import {Component, inject} from '@angular/core'; import {changeDetection} from '@demo/emulate/change-detection'; import {encapsulation} from '@demo/emulate/encapsulation'; import {TuiSheetDialogService} from '@taiga-ui/addon-mobile'; @@ -10,7 +10,7 @@ import {Subject, switchMap} from 'rxjs'; templateUrl: './index.html', encapsulation, changeDetection, - providers: [] + }) export class TuiSheetDialogExample1 { protected readonly stream$ = new Subject(); @@ -21,7 +21,7 @@ export class TuiSheetDialogExample1 { switchMap(() => inject(TuiSheetDialogService).open('', {label: 'Simple sheet'}), ), - takeUntilDestroyed(inject(DestroyRef)), + // Replacement needed for takeUntilDestroyed(inject(DestroyRef)) ) .subscribe(); }