An NX middleware, responsible for data-binding.


stars 🌟issues ⚠️updated 🛠created 🐣size 🏋️‍♀️
00May 5, 2017Jan 1, 2017Minified + gzip package size for @nx-js/bindable-middleware in KB


The bindable middleware

The bindable middleware adds the $bindable method to elements, which can be used to make any element bindable.

  • name: bindable
  • middleware dependencies: attributes
  • all middleware dependencies: observe, attributes
  • type: component or content middleware
  • ignores: text nodes
  • docs


npm install @nx-js/bindable-middleware


const component = require('@nx-js/core')
const observe = require('@nx-js/observe-middleware')
const attributes = require('@nx-js/attributes-middleware')
const style = require('@nx-js/bindable-middleware')

  .use(elem => elem.$bindable({mode: 'two-way', on: 'input'}))
<bindable-comp name="prop" bind></bindable-comp>

If you find any bugs or have a feature request, please open an issue on github!

The npm package download data comes from npm's download counts api and package details come from npms.io.