I should eventually be as simple as v1: any piece of templating can be enhanced. Or it can read as composition using any kind of template & view model. For now, we don’t have it yet. For the error you got, it’s mainly for a fullblown CE compilation.
Can you help create a ticket to track this?
The v2 “enhance” will call all the lifecycle hooks. Except it won’t detach the enhance root, because the root was not attached by the “enhance” in the first place.
This does not work anymore, there is no function createElement in aurelia package.
Recent version of mdc-dialog-service wraps dialog in a DIV.
How to enhance the element, but not the host in Aurelia 2?
How to dynamically add and enhance child elements when parent is already enhanced?
Range object as host is not supported too:
let dynamic = document.createElement('MY-ELEMENT');
this.element.appendChild(dynamic);
let range = document.createRange();
range.selectNode(dynamic);
this.au.enhance({
component: this,
host: range
})