Socket
Socket
Sign inDemoInstall

@nx-js/flow-middleware

Package Overview
Dependencies
5
Maintainers
1
Versions
2
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

    @nx-js/flow-middleware

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


Version published
Weekly downloads
1
Maintainers
1
Install size
14.2 kB
Created
Weekly downloads
 

Readme

Source

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>

Keywords

FAQs

Last updated on 10 Feb 2017

Did you know?

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc