An NX middleware, responsible for inline event handling.


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


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


npm install @nx-js/events-middleware


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

  <button #click="alert('Hello World!')">Click me</button>

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.