I have a component with an internal state, stored in a RxJS `BehaviorSubject` (containing the size of a certain DOM element, by the way).

I would like to expose this state as an `@Output()` property.

The most naive implementation I can think of is this:

```js
// inside myComponent

private _state$ = new BehaviorSubject<Something>(...);

@Output() stateChange = new EventEmitter<Something>();

constructor() {
  // skipping unsubscription for the sake of this simplistic example
  this._state$.subscribe(newState => this.stateChange.emit(newState);
}

```

However, this will NOT emit the currently stored value as a `BehaviorSubject` does as soon as there is a new subscription. Late subscribers are not going to get the current value.

Is there a simple approach for cases like this? I would like to expose the state and basically stop worrying about the order of the events, as I do with a simple `BehaviorSubject<T>`.