Skip to content

A middleware, responsible for passing static and dynamic component properties.

License

Notifications You must be signed in to change notification settings

nx-js/props-middleware

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

The props middleware

The props middleware is responsible for injecting static or dynamic properties into reusable components.

Installation

npm install @nx-js/props-middleware

Usage

const component = require('@nx-js/core')
const observe = require('@nx-js/observe-middleware')
const attributes = require('@nx-js/attributes-middleware')
const props = require('@nx-js/props-middleware')

component()
  .use(observe)
  .use(attributes)
  .use(props('name', 'age', 'items'))
  .register('props-comp')
<props-comp name="Bob" age="12" @items="myItems">Hello World!</props-comp>

About

A middleware, responsible for passing static and dynamic component properties.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published