Nit-Picking Magistrate

    @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>

    Install

    npm i @nx-js/events-middleware

    DownloadsWeekly Downloads

    2

    Version

    1.0.0

    License

    MIT

    Last publish

    Collaborators

    • solkimicreb