Skip to content

Commit

Permalink
fix: readonly signals
Browse files Browse the repository at this point in the history
  • Loading branch information
Mirko Nowak committed Nov 12, 2023
1 parent 8168685 commit 454ffc4
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 4 deletions.
2 changes: 1 addition & 1 deletion src/app/core/services/fullscreen.modal.service.ts
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,6 @@ export class FullscreenModalService {
}

getModalSignal(): Signal<string> {
return this.modalContent;
return this.modalContent.asReadonly();
}
}
5 changes: 2 additions & 3 deletions src/app/core/services/menu.service.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
import {Injectable, Signal, signal} from '@angular/core';
import {BehaviorSubject, Observable} from 'rxjs';

@Injectable()
export class MenuService {
Expand All @@ -17,7 +16,7 @@ export class MenuService {
this.sideMenuOpen.update(value => !value);
}

openSignal() {
return this.sideMenuOpen;
openSignal(): Signal<boolean> {
return this.sideMenuOpen.asReadonly();
}
}

0 comments on commit 454ffc4

Please sign in to comment.