vue-rx
vue-rx copied to clipboard
Proposal: subscribeAsEmit helper method
Admittedly a fairly trivial helper, but I know it would help with some boiler plate. And it gives a nice symmetry to the $fromEvent
helpers
Basically:
function $subscribeAsEmit (name) {
return (observable) => observable.subscribe(event => this.$emit(name, event))
}