maxkorolev / vue-rxjs

Yet another rxjs binding library for Vue.js
MIT License
16 stars 1 forks source link

Alternative API #1

Open maxkorolev opened 7 years ago

maxkorolev commented 7 years ago

Make alternative api for vue-pipes. Now every pipe adds flat, but not structured names to component's scope, for example,

pipes: {
    addItem: () => () => {}
}

It will add to scope vm.addItemApply() function, someone can dislike it, because this function can conflict with someone's business logic. So maybe we need some sort of api which will add one object with several properties, for example, previous code will add to scope such object

vm.addItem.apply - method to call
vm.addItem.value - current value of this pipe
vm.addItem.error - error value

Let's discuss it Implementation is within alternative-api branch