Properties

Introduction

The props static object of a Wafer component defines the reactive properties of the component that will trigger updates to the template when their value changes:

class MyExample extends Wafer {
static get props() {
return {
count: {
type: Number,
initial: 10,
reflect: true,
targets: [],
triggers: [],
attributeName: "my-count",
},
};
}
}

All are optional.

Next: Types Previous: Templating