How would you go about accessing a DOM element in Aurelia? This is a broad and general question, but I have a feeling there are one or two preferred ways to do this. I have
Another option; if your view-model is exposed as a @customElement, its DOM element can be injected in the constructor:
@customElement
@customElement @inject(Element) export class MyCustomElement { constrctor(element) { logger.info(element) // ==> } }