0.0.9 • Published 3 years ago

define-custom-element-decorator v0.0.9

Weekly downloads
-
License
-
Repository
-
Last release
3 years 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

3 years ago

0.0.8

3 years ago

0.0.7

3 years ago

0.0.6

3 years ago

0.0.5

3 years ago

0.0.4

3 years ago

0.0.3

3 years ago

0.0.2

3 years ago

0.0.1

3 years ago