Skip to content

nx-js/params-middleware

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

16 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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

About

An NX middleware, responsible for query parameter routing.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published