setElement(element) {
    if (this.element) {
      delete this.element.component;
      delete this.element;
    }
    this.element = element;
  }
Sets the HTMLElement for this component.
@param {HTMLElement} element - The element that is attached to this component.
@returns {void}