@nx-js/events-middleware

An NX middleware, responsible for inline event handling.

Stats

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

Readme

The events middleware

The events middleware allows you to use inline event handler attributes in the HTML view.

  • name: events
  • middleware dependencies: none
  • all middleware dependencies: none
  • processes: element nodes
  • throws on: nothing
  • use as: component or content middleware
  • docs

Installation

npm install @nx-js/events-middleware

Usage

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

component()
  .useOnContent(events)
  .register('events-comp')
<events-comp>
  <button #click="alert('Hello World!')">Click me</button>
</events-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.