Proposal: subscribeAsEmit helper method
paulpdaniels opened this issue · 0 comments
paulpdaniels commented
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))
}