Skip to content

Instantly share code, notes, and snippets.

View gbegerow's full-sized avatar
💭
Tea Driven Developer

Georg Begerow gbegerow

💭
Tea Driven Developer
View GitHub Profile
@jhoguet
jhoguet / debug.md
Created February 9, 2016 04:57
aurelia console debugger

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;
    }