@nx-js/params-middleware
v2.0.0
Published
An NX middleware, responsible for query parameter routing.
Downloads
9
Maintainers
Readme
The params middleware factory
The params
middleware factory is responsible for automatically synchronizing state properties with query parameters.
- name: params
- direct middleware dependencies: observe
- all middleware dependencies: observe
- type: component middleware
- ignores: text nodes
- docs
Installation
npm install @nx-js/params-middleware
Usage
const component = require('@nx-js/core')
const observe = require('@nx-js/observe-middleware')
const params = require('@nx-js/params-middleware')
component()
.use(observe)
.use(params({
paramName: {history: true, type: 'string'}
}))
.register('comp-name')