Skip to content

Commit ac65828

Browse files
committed
refactor(toaster.service): readonly props
1 parent 3578bbd commit ac65828

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

projects/coreui-angular/src/lib/toast/toaster/toaster.service.ts

+3-3
Original file line numberDiff line numberDiff line change
@@ -14,10 +14,10 @@ export interface IToasterAction {
1414
providedIn: 'root'
1515
})
1616
export class ToasterService {
17-
private toasterState = new BehaviorSubject<IToasterAction>({});
18-
toasterState$ = this.toasterState.asObservable();
17+
readonly #toasterState = new BehaviorSubject<IToasterAction>({});
18+
readonly toasterState$ = this.#toasterState.asObservable();
1919

2020
setState(state: IToasterAction): void {
21-
this.toasterState.next({ ...state });
21+
this.#toasterState.next({ ...state });
2222
}
2323
}

0 commit comments

Comments
 (0)