Package: two-way databinding through ReactiveVars

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!

1 Like

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.

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

1 Like

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)

1 Like