0.0.9 • Published 11 months ago

define-custom-element-decorator v0.0.9

Weekly downloads
-
License
-
Repository
-
Last release
11 months ago

Usage

import {customElement} from 'define-custom-element-decorator';

@customElement()
class MySuperCoolElement extends LitElement {

}

// Now you can use <my-super-cool-element> anywhere in your app.

You can also decide to inject your element when you create an instance.

import {customElement} from 'define-custom-element-decorator';

@customElement({ inject: true })
class MyServiceElement extends LitElement {

}

// Creating an object will make your element be automatically
// prepended inside the body of your document.
export const service = new MyServiceElement();

Installation

npm add -D define-custom-element-decorator

Special thanks

to Glenn for the hyphen idea :-P

0.0.9

11 months ago

0.0.8

11 months ago

0.0.7

12 months ago

0.0.6

12 months ago

0.0.5

12 months ago

0.0.4

12 months ago

0.0.3

12 months ago

0.0.2

12 months ago

0.0.1

12 months ago