If I have a behavior subject with boolean type and I want it to be true initially, how can I achieve this?
private _someBool: BehaviorSubject<boolean> = new BehaviorSubject<boolean>(true);
get someBool$() {
return this._someBool.asObservable();
}
The issue arises when I subscribe to it and the value is false instead of true. How can I set the default value in such a scenario?