Simply expose a global (eg in main.js
)
window.au = el => {
let aureliaNode = el;
// go up the structure until an element affected by aurelia is found
while (aureliaNode !== null && aureliaNode !== undefined && aureliaNode.au === undefined) {
aureliaNode = aureliaNode.parentNode;
}