Package: two-way databinding through ReactiveVars


#1

Just released this package. Binding inputs to reactive-vars in their respective templates is particularly handy for form submissions / validation. Feel free to share your thoughts!


#2

Two way binding is the way to go. Your demo code is missing the js (https://github.com/gwendall/meteor-bindings-demo/blob/master/demo-bindings.js)

Check out ViewModel for a more robust version of this.


#3

Not missing anything since no JS is required. :slight_smile: The DOM update is done automatically unless you disable it with Bindings.reactive = false


#4

Ah, now I get it. Nice. You probably want to remove the js file from the demo repo, you usually expect a file to have “something”.

(or put a comment on the js file explaining why it’s empty)