nx-js / bind-middleware

An NX data-binding middleware.

Home Page:http://www.nx-framework.com/

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

The bind middleware

The bind middleware makes the input, select and textarea elements bindable with the bind custom attribute.

Installation

npm install @nx-js/bind-middleware

Usage

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

component()
  .useOnContent(observe)
  .useOnContent(attributes)
  .useOnContent(bindable)
  .useOnContent(bind)
  .register('binding-comp')
<binding-comp>
  <input type="number" name="age" bind />
</binding-comp>

About

An NX data-binding middleware.

http://www.nx-framework.com/

License:MIT License


Languages

Language:JavaScript 100.0%