Angular 6 requires an update to RxJs 6 and with that RxJs update the Observable.publish()
function is gone. I found a publish
operator in RxJs/operators
but I'm having trouble figuring out how to use it.
How could this RxJs 5 code be rewritten to work with RxJs 6?
const myConnectableObservable = this.getObservable().publish()