I am learning RxJs, I am seeking confirmation or correction on my assumption.
I am trying to make a public read only observable in a servic
In project we are using this kind of Observables, this is giving you proper encapsulation to your private observable, but you still can call next() using some public method.
private sourceName = new Subject();
name = this.sourceProductName.asObservable();
sendName(item: T) {
this.sourceName.next(item);
}