Releases: nativew/nativeweb
Releases · nativew/nativeweb
2.1.0
2.0.0
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>