wrAttributes
Web components that extend wire.ui.WebComponent
can use the wrAttributes
base method. wrAttributes
transforms all of the attributes set on a web component into a single object. The transform uses the "-" character as an object property break. This makes it possible to use complex objects with attribute bindings.
Set up a complex object via component attributes.
Transform the attributes into an object and set into a public property.
Use the object in the component template.
Last updated