How to tear down an enhanced fragment
问题 I am working on an existing SPA where we replace components with Aurelia components step by step. We use the enhance API of the TemplatingEngine . That works pretty well but we also need to tear down those enhanced fragments (remove event listeners, ...) when moving to another part of the application (no page reload). My idea is to keep the aurelia instance in the page and reuse it. Currently I enhance fragments like this: function enhanceFragment(targetElement) { function proceed() { let