Skip to content

An NX middleware, responsible for handling loops and conditionals in the view.

License

Notifications You must be signed in to change notification settings

nx-js/flow-middleware

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

7 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

The flow middleware

The flow middleware is responsible for controlling visual flow in the HTML view.

  • name: flow
  • middleware dependencies: attributes
  • all middleware dependencies: observe, attributes
  • type: component or content middleware
  • ignores: text nodes
  • docs

Installation

npm install @nx-js/flow-middleware

Usage

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

component()
  .useOnContent(observe)
  .useOnContent(attributes)
  .useOnContent(flow)
  .register('flow-comp')
<flow-comp @repeat="names" repeat-value="name">
  <p>The name is ${name}</p>
</flow-comp>

About

An NX middleware, responsible for handling loops and conditionals in the view.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published