Skip to content

Latest commit

 

History

History
29 lines (22 loc) · 798 Bytes

README.md

File metadata and controls

29 lines (22 loc) · 798 Bytes

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')