If aurelia does not have built-in support, you can set up an unnecessary point of view on a module that has the following logic:
import {noView, inject} from 'aurelia-framework';
@noView
@inject(Element)
export class HiddenViewPort {
constructor(element) {
this.element = element;
}
activate() {
this.element.parentNode.classList.add('aurelia-hide');
}
deactivate() {
this.element.parentNode.classList.remove('aurelia-hide');
}
}
source
share