We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 0e819c0 commit e484583Copy full SHA for e484583
projects/coreui-angular/src/lib/sidebar/sidebar.service.ts
@@ -17,10 +17,10 @@ export interface ISidebarAction {
17
providedIn: 'root'
18
})
19
export class SidebarService {
20
- private sidebarState = new BehaviorSubject<ISidebarAction>({});
21
- sidebarState$ = this.sidebarState.asObservable();
+ readonly #sidebarState = new BehaviorSubject<ISidebarAction>({});
+ readonly sidebarState$ = this.#sidebarState.asObservable();
22
23
toggle(action: ISidebarAction): void {
24
- this.sidebarState.next(action);
+ this.#sidebarState.next(action);
25
}
26
0 commit comments