Socket
Socket
Sign inDemoInstall

@nx-js/attributes-middleware

Package Overview
Dependencies
3
Maintainers
1
Versions
2
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

    @nx-js/attributes-middleware

An NX middleware, responsible for handling reactive and custom attributes.


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

Readme

Source

The attributes middleware

The attributes middleware extends native attributes with dynamic behavior and provides a way to add custom attributes.

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

Installation

npm install @nx-js/attributes-middleware

Usage

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

component()
  .useOnContent(observe)
  .useOnContent(attributes)
  .register('attributes-comp')
<attributes-comp>
  <span @hidden="!show">Hello World!</span>
</animated-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