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
npm install @nx-js/params-middleware
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')