https://github.com/gwendall/meteor-bindings
Easy two-way databinding with Blaze
https://github.com/gwendall/meteor-bindings
Last synced: about 2 months ago
JSON representation
Easy two-way databinding with Blaze
- Host: GitHub
- URL: https://github.com/gwendall/meteor-bindings
- Owner: gwendall
- Created: 2015-03-12T15:48:42.000Z (about 10 years ago)
- Default Branch: master
- Last Pushed: 2017-08-07T14:19:08.000Z (almost 8 years ago)
- Last Synced: 2025-04-04T22:46:58.592Z (about 2 months ago)
- Language: JavaScript
- Homepage:
- Size: 7.81 KB
- Stars: 12
- Watchers: 3
- Forks: 1
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
```diff
- NOTE: This package is not maintained anymore.
- If you want to help, please reach out to [email protected]
```Meteor Bindings
=================Easy two-way databinding with Blaze
[Demo](https://bindings.meteor.com)
[Demo code](https://github.com/gwendall/meteor-bindings-demo)Installation
------------``` sh
meteor add gwendall:bindings
```How it works
----------1. Set [data-bind] attributes to DOM elements in a given template.
2. That's it. Everytime a change is made on a bound input, a reactive-var will be dynamically created / updated with the new value in the parent template instance of the input. And the value / text of every other DOM element in the entire DOM with the same [data-bind] attribute will be updated appropriately.Options
----------**Bindings.reactive = Boolean** (true by default)
Whether or not the DOM should be updated reactively.
Set it to false if you want to only use the package to bind inputs to reactive-vars, or trigger the DOM update yourself with one of the methods below.Methods
----------**Bindings._renderVar([template_instance], [property])**
Updates the DOM elements bound to a given reactiveVar of the provided template instance.**Bindings._renderVars([template_instance])**
Updates the DOM elements bound to all the reactiveVars of the provided template instance.