Skip to content

2.0.0

Compare
Choose a tag to compare
@hum-n hum-n released this 25 Mar 02:59
· 3 commits to main since this release

Change child & external events key to strings.

This removes the need to name the component's class.
Everything now refers to the element name element-name instead of naming the component in two different ways.

From

@event() click = {
    button: this.onClick()
};
@event() ready = {
    OtherComponent: this.onReady()
};

To

@event() click = {
    '@button': this.onClick()
};
@event() ready = {
    'other-component': this.onReady()
};

Add this.properties

To get all the component's attributes.
You can now easily pass all attributes to a child component.

<child-component ${...this.properties}></child-component>