How correct is it to do a toggle variable?
public toggleLabels$ = new BehaviorSubject<boolean>(true);
public toggleLabels() {
this.toggleLabels$.next(!this.toggleLabels$.getValue());
}
I just get reverse value and push it back. Is it good way?