import {inlineView, customElement} from 'aurelia-framework' @customElement('attaching-span') @inlineView(``) export class AttachingSpan { attached() { // you can notify that the element is attached, but the method has to be present } }