vue-expose-component-names

0.0.5 • Public • Published

vue-expose-component-names

This Vue.js plugin expose component names in the DOM by adding a data-component-name attribute to the root element of all your Vue components.

This let you use a CSS selector to easily query your components:

document.querySelectorAll("[data-component-name='MyComponent']")

Build Status Software License Packagist Latest Version

Installation

npm install --save vue-expose-component-names

License

The MIT License (MIT). Please see License File for more information.

Readme

Keywords

none

Package Sidebar

Install

npm i vue-expose-component-names

Weekly Downloads

2

Version

0.0.5

License

MIT

Last publish

Collaborators

  • sylvainpolletvillard