Yeah, having the inputs — and the lifecycle events — available as observables that can be composed can significantly reduce the amount of code required in a component.

BTW, it’s necessary to return the proxy from the constructor, as the observables only emit notifications when properties are assigned or methods are called via the proxy. So Angular — the caller of the constructor — needs to receive the proxy.

RxJS core team member; front-end developer; mentor; speaker; open-source contributor

Get the Medium app

A button that says 'Download on the App Store', and if clicked it will lead you to the iOS App store
A button that says 'Get it on, Google Play', and if clicked it will lead you to the Google Play store