Skip to content

nx-js/events-middleware

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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
  • type: component or content middleware
  • ignores: text nodes
  • 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>

About

An NX middleware, responsible for inline event handling.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published