Because I would like to keep the custom element self-contained, I want to avoid putting a reference to the member variable on the window
object.
customElements.define( 'component-one', class extends HTMLElement {
connectedCallback() {
this.memberVariable="This is a member variable";
this.innerHTML = "<button onclick='//How do I reference the above this.memberVariable here?'>This is a button</button>";
}
}):