@nx-js/attributes-middleware

An NX middleware, responsible for handling reactive and custom attributes.

Stats

stars 🌟issues ⚠️updated 🛠created 🐣size 🏋️‍♀️
01Feb 10, 2017Dec 31, 2016Minified + gzip package size for @nx-js/attributes-middleware in KB

Readme

The attributes middleware

The attributes middleware extends native attributes with dynamic behavior and provides a way to add custom attributes.

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

Installation

npm install @nx-js/attributes-middleware

Usage

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

component()
  .useOnContent(observe)
  .useOnContent(attributes)
  .register('attributes-comp')
<attributes-comp>
  <span @hidden="!show">Hello World!</span>
</animated-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.