@nx-js/events-middleware

1.0.0 • Public • Published

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>

Dependencies (1)

Dev Dependencies (0)

    Package Sidebar

    Install

    npm i @nx-js/events-middleware

    Weekly Downloads

    1

    Version

    1.0.0

    License

    MIT

    Last publish

    Collaborators

    • solkimicreb